You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop ignores permission rules in ~/.config/opencode/opencode.jsonc #36416
OpenCode Desktop does not honor permission rules defined in the user-level config ~/.config/opencode/opencode.jsonc. For example, with the following in the config:
Desktop still pops up the "Allow / Deny" confirmation dialog when the agent tries to run git log. The same config works as expected in the TUI (opencode CLI), so the rule is being written correctly and parsed somewhere — Desktop just doesn't apply it.
Plugins
none
OpenCode version
1.17.18 (1.17.18)
Steps to reproduce
Make sure ~/.config/opencode/opencode.jsonc (or the OS equivalent) contains a permission rule such as "bash": { "git log*": "allow" }.
Launch OpenCode Desktop and start a session in any git repo.
Ask the agent to run git log (or any command matching the pattern).
Observe the permission prompt asking to confirm, instead of auto-allowing.
(For comparison) Run the same prompt in the TUI opencode CLI with the same config — the command runs without prompting.
If your issue is specifically about the Desktop app ignoring the global config while the TUI works correctly (i.e., the Desktop sidecar not loading ~/.config/opencode/opencode.jsonc at all), that would be a distinct bug from the above — please add a note confirming whether this is the case so maintainers can triage accordingly.
Activity
[-]OpenCode Desktop ignores permission rules from ~/.config/opencode/opencode.jsonc (bash patterns always prompt)[/-][+]Desktop ignores permission rules in ~/.config/opencode/opencode.jsonc[/+]github-actions commentedon Jul 11, 2026
This issue might be a duplicate of existing issues reporting that permission rules are not honored. Please check:
permission: "allow"andpermission.* = "allow"still trigger approval prompts #28482:permission: "allow"andpermission.* = "allow"still trigger approval promptsIf your issue is specifically about the Desktop app ignoring the global config while the TUI works correctly (i.e., the Desktop sidecar not loading
~/.config/opencode/opencode.jsoncat all), that would be a distinct bug from the above — please add a note confirming whether this is the case so maintainers can triage accordingly.github-actions commentedon Sep 10, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.