Skip to content

v3.38.7

Choose a tag to compare

@systematic-release systematic-release released this 29 Nov 15:04
· 21 commits to main since this release
Immutable release. Only release title and notes can be modified.
3c80ff8

What's new

Bug Fixes

Review agents are no longer offered write, dispatch and skill tools on OpenCode (#1561, e8b4469). The 18 code-review agents under agents/review/ declared their tools as a tools: Read, Grep, Glob, Bash string, and OpenCode ignores that form. As a result a dispatched reviewer could be handed every tool in the session, including write, edit, dispatch and both skill tools, and every model call carried those definitions. Each reviewer now has a permission: block that denies edit, task, skill, systematic_skill, websearch, question, todowrite, image and video generation, and the session tools. Both OpenCode hosts leave a fully denied tool out of the model request. On OpenCode v1 1.19.6 a reviewer now sees only bash, glob, grep, read, systematic_search and webfetch. On v2 2.4.1 the host's own skill tool is still listed because of a built-in host rule, but calls to it are refused. The block is a deny list, not an allow list, so it leaves read, bash and external_directory alone and your own host-wide rules for those tools still apply. It narrows what reviewers are offered. It is not a sandbox. To support this, the frontmatter permission parser now keeps any key whose value is allow, ask or deny, in file order. Before, it kept eight fixed keys, so a key like systematic_skill: deny never reached the host.

A later permission layer now wins over an earlier one (#1564, a230c71). An agent's permissions are built in layers: the agent file's frontmatter, then the category overlay, then the agent overlay. OpenCode applies the last rule that matches, so a later layer should take precedence. The old plan grouped rules by permission name, so a wildcard written between two rules for the same tool could end up after both. For example, a category '*': allow overrode connections-researcher's bash: deny, which gave a read-only agent a tool the user had denied it. Rules are now kept in the order they were written. OpenCode v2 receives that ordered list as-is. On v1, which allows only one entry per permission name, the adapter copies * rules into the entries written before them. In a few cases that can't be reordered safely, it falls back to the old grouping and logs a warning that names the agent.

v1 permission rules are lowered correctly when a wildcard name can't match any other name (#1570, fbe96e4). The fallback from #1564 kicked in whenever any permission name contained a wildcard. That was broader than needed: a name like mcp_* was enough to let a category '*': allow override an agent's own edit: deny. The fallback now applies only when two permission names can actually match the same tool. That means a wildcard name that may match another written name, two wildcard names, or two names that differ only by case. The overlap test deliberately over-estimates and uses no regular expressions. An exhaustive check over 66,429 rule lists confirms the output answers the same way the written list does.

A tool's final deny stays in effect on OpenCode v1 when another permission name can match it (#1571, a3d6d71). On v1, a written order such as edit: deny, 'ed*': allow, edit: deny used to come out as { "edit": "deny", "ed*": "allow" }, which left edit allowed. Now, when a name without a wildcard ends on a deny that covers every resource, and no later rule can apply to it, its entry is emitted last. That keeps the deny effective. Every other case produces byte-for-byte the same output as before. One known gap remains: a later scoped rule, or a later allow, can still lose to an earlier overlapping wildcard name on v1. OpenCode v2 is not affected by this fix or by #1570, because it receives the written list.

Also in this release

  • deps: update fro-bot/agent to v0.153.0 (#1559), v0.154.0 (#1569) and v0.155.0 (#1572).
  • dev: update dependency @types/node to v24.19.3 (#1558).

Compare

v3.38.6...v3.38.7