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
If your issue is distinct (e.g., specific to sub-agents spawned via the Task tool rather than the primary agent), please clarify how it differs from the above.
I didn't compact.. this was a fresh session. I don't think it was using bash but it might have been I just immediately panicked and tried to stop it but you can't double esc a sub agent so I went to main agent and stopped it. It even denied that it edited files until I made it check and then it had a lot of repairing to do.
Same here, experienced this across various models (Qwen3.5, Qwen3.5, Anthropic Claude Haiku and Sonnet), projects and sessions. The core issue is that OpenCode does not enforce write tool call restrictions in Plan mode, it only "hopes" the model adheres to the instructions. If the model does a writing tool call (even hidden in a bash or python command line execution), there's nothing stopping it.
Some models are really terrible. They kind of don't care at all if you're in plan mode. And this is not only about sub-agents. Something needs to be done to restrict it in plan mode.
Damn that's a long time for this issue to be unfixed. I've mitigated the problems with 3 different kinds of backups but it would be nice to just be able to trust plan mode. Might as well close this one since its a dupe.
Activity
github-actions commentedon Apr 20, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct (e.g., specific to sub-agents spawned via the Task tool rather than the primary agent), please clarify how it differs from the above.
Czargasm commentedon Apr 20, 2026
I didn't compact.. this was a fresh session. I don't think it was using bash but it might have been I just immediately panicked and tried to stop it but you can't double esc a sub agent so I went to main agent and stopped it. It even denied that it edited files until I made it check and then it had a lot of repairing to do.
MartinEmrich commentedon Apr 21, 2026
Same here, experienced this across various models (Qwen3.5, Qwen3.5, Anthropic Claude Haiku and Sonnet), projects and sessions. The core issue is that OpenCode does not enforce write tool call restrictions in Plan mode, it only "hopes" the model adheres to the instructions. If the model does a writing tool call (even hidden in a bash or python command line execution), there's nothing stopping it.
iceman1010 commentedon Apr 26, 2026
Some models are really terrible. They kind of don't care at all if you're in plan mode. And this is not only about sub-agents. Something needs to be done to restrict it in plan mode.
neuhaus commentedon May 1, 2026
This critical issue is a duplicate of issue #7292 and hasn't been fixed since it was introduced on Jan 1st.
Czargasm commentedon May 6, 2026
Damn that's a long time for this issue to be unfixed. I've mitigated the problems with 3 different kinds of backups but it would be nice to just be able to trust plan mode. Might as well close this one since its a dupe.