The open source coding agent.
TypeScript
docs: fix order of permissions in agents docs (permissions subsection) (#7041)
Shane Bishopd486c1c7c82d
diff --git a/packages/web/src/content/docs/agents.mdx b/packages/web/src/content/docs/agents.mdxindex c6e919e4073..f3f0b52eb12 100644--- a/packages/web/src/content/docs/agents.mdx+++ b/packages/web/src/content/docs/agents.mdx@@ -426,9 +426,9 @@ mode: subagentpermission:edit: denybash:+ "*": ask"git diff": allow"git log*": allow- "*": askwebfetch: 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"}}}