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
Global configuration supersedes local configuration #19296
This means project configs can override global defaults, and global configs can override remote organizational defaults.
However, currently global config supersedes project config. (I suspect this behaviour is the cause of several other permissions-related github issues.)
Plugins
No response
OpenCode version
1.3.2
Steps to reproduce
Set ~/.opencode/opencode.json and (local) opencode.json to either of :
global restricted + local unrestricted = "Permission required -> Read ."
global unrestricted + local restricted = no permission required.
no global configuration + local restricted = "Permission required -> Read ."
no global configuration + local unrestricted = no permission required.
The two last cases are expected and show that the local configuration works. The two first cases are the opposite of the documented behaviour, and show that the global configuration supersedes the local one.
Activity
github-actions commentedon Mar 26, 2026
This issue might be a duplicate of existing issues. Please check:
G-Guillard commentedon Mar 26, 2026
Not a duplicate of #16897 according to its reporter, however it looks like a regression from #4217.
fix(config): correct directory config precedence so project overrides…
fix(config): load ~/.opencode before project dirs so project config wins
fix(config): load ~/.opencode before project dirs so project config wins
github-actions commentedon Jul 5, 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.