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
Description
In plan mode, OpenCode is supposed to be a read-only agent that "asks permission before running bash commands" (per docs). However, the LLM executes destructive git commands without any permission check:
git reset --hard
git push --force-with-lease
git rebase
git branch -D
Expected behavior
Plan mode should be enforced at the engine level, not rely on the LLM to self-restrain. The engine should:
Block write/modify commands by default in plan mode
Activity
github-actions commentedon Apr 24, 2026
This issue might be a duplicate of existing issues. Please check:
Please review these issues and consider whether your report adds new information not already covered. If so, feel free to clarify the distinction.
2nOrderEDO commentedon May 5, 2026
I have observed the same thing with the same model but i 5 bit quantization.
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.