diff options
| author | Shane Bishop <[email protected]> | 2026-01-05 21:10:50 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-05 23:10:50 -0600 |
| commit | d486c1c7c82ddd073225b28f639693df4af7aaea (patch) | |
| tree | 2c7515b62c2d38d83677051e5d8742ecf6713fb8 | |
| parent | 9197a2a7a169cfbee1169073c798fe8b11da9750 (diff) | |
| download | opencode-d486c1c7c82ddd073225b28f639693df4af7aaea.tar.gz opencode-d486c1c7c82ddd073225b28f639693df4af7aaea.zip | |
docs: fix order of permissions in agents docs (permissions subsection) (#7041)
| -rw-r--r-- | packages/web/src/content/docs/agents.mdx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/web/src/content/docs/agents.mdx b/packages/web/src/content/docs/agents.mdx index c6e919e40..f3f0b52eb 100644 --- a/packages/web/src/content/docs/agents.mdx +++ b/packages/web/src/content/docs/agents.mdx @@ -426,9 +426,9 @@ mode: subagent permission: edit: deny bash: + "*": ask "git diff": allow "git log*": allow - "*": ask webfetch: deny --- @@ -470,7 +470,7 @@ This can take a glob pattern. ``` And you can also use the `*` wildcard to manage permissions for all commands. -Where the specific rule can override the `*` wildcard. +Since the last matching rule takes precedence, put the `*` wildcard first and specific rules after. ```json title="opencode.json" {8} { @@ -479,8 +479,8 @@ Where the specific rule can override the `*` wildcard. "build": { "permission": { "bash": { - "git status": "allow", - "*": "ask" + "*": "ask", + "git status": "allow" } } } |
