Skip to content

Conversation

@kdcokenny
Copy link

Problem

Permission examples show catch-all "*" rules at the bottom, but OpenCode uses "last matching rule wins" — so the catch-all overrides all specific rules above it.

Solution

Move "*" rules to the top of permission blocks so specific rules can override them.

Changes

  • agents.mdx: Fix YAML and JSON examples, clarify explanatory text
  • skills.mdx: Fix JSON example

Place catch-all "*" rules first in permission examples to match
"last matching rule wins" semantics.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found.

The searches returned PR #7010 (the current PR itself), which is expected. The other results (PR #6549 about Intent abstraction and PR #4773 about hiding subagents) are unrelated to the permission rule ordering documentation fix.

This appears to be a unique fix addressing a specific documentation issue with permission rule ordering in examples.

@kdcokenny
Copy link
Author

it looks like #7041 solved one of the files

@kdcokenny
Copy link
Author

any word on this @adamdotdevin ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant