[PR #7010] docs: fix permission rule ordering in examples #12202

Closed
opened 2026-02-16 18:17:07 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7010

State: closed
Merged: Yes


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
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7010 **State:** closed **Merged:** Yes --- ## Problem Permission examples show catch-all `"*"` rules at the bottom, but OpenCode uses ["last matching rule wins"](https://github.com/anomalyco/opencode/blob/dev/packages/web/src/content/docs/permissions.mdx#L70) — 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
yindo added the pull-request label 2026-02-16 18:17:07 -05:00
yindo closed this issue 2026-02-16 18:17:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12202