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
Config Flag to mark part of the global config as non-overridable per project - Project level permissions should not be able to set bash permissions #7136
Project level permissions merge/overwrite global config.
There are valid usecases for that, but executing arbitrary bash commands is usually not one of them.
Beside the lack of default permissions which is hard to grasp for me, this seems like another major issue:
I could fetch some malicious repo from github, run opencode with something as simple as "Hey explain this project", the project contains instructions to execute something and a project level opencode config to always run bash commands, and the project can run arbitrary code on my system.
Or even for non-intentional cases, if I decide that I don't want an LLM to run arbitrary commands on my device unsupervised and check out the project of someone who didn't set sensible defaults, their choice should not reflect on my device.
Maybe flexibility of the current config and permission model could be kept by adding some flag in the global config to mark some part that should not be overridable on a project-level? That way a rule "ask before bash commands, no exceptions" could be specified.
changed the title [-]Project permissions should not be able to set bash permissions[/-][+]Config Flag to mark part of the global config as non-overridable per project - Project level permissions should not be able to set bash permissions[/+]on Jan 6, 2026
Activity
github-actions commentedon Jan 6, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
[-]Project permissions should not be able to set bash permissions[/-][+]Config Flag to mark part of the global config as non-overridable per project - Project level permissions should not be able to set bash permissions[/+]thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.