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
In plan mode files are changed, which implies there is no hard guard against this and it depends on the model if it follows the rules or not. I guess only a user account switch would make this impossible. Opencode should have it's own user accounts, one plan account and one build account.
Plugins
No response
OpenCode version
1.1.20
Steps to reproduce
i cannot reproduce this since it is random behaviour
Similar situation with me but not sure if it fits this issue.
Prompted it to investigate a given part of the code + list bugs found + create github issues. Not sure how much "creating github issues" can be seen as "editing" but kinda strikes me as something that shouldn't have been done in plan mode.
Hah, I have the opposite problem - a model refusing pointblank to even attempt to modify a file while in Plan mode, even when the file is at an explicitly allowed location like <root>/.opencode/plans/foo.md.
The user is calling me out - I applied changes (via sed) while in plan mode, which the system reminder explicitly forbids. I need to acknowledge this mistake honestly.
Looking back at the conversation:
The user asked me to apply a fix (the device_sim table name fix), and I used sed via bash
Later, I discovered the SELECT * vs SELECT e.* issue and again used sed
All of this happened while the system reminder said "Plan mode ACTIVE - you are in READ-ONLY phase"
I made a mistake by applying edits in plan mode. The user explicitly asked me to apply ("dale", "Si, aplicá"), but the plan mode was still active and I should have asked the user to switch modes before making changes.
Activity
scorpioares commentedon Mar 26, 2026
I have encountered a similar situation where files were modified directly in plan mode.
Is it possible to control this behavior by, for example, setting separate permissions for plan mode and build mode in
opencode.json?mr-lino commentedon Apr 7, 2026
Similar situation with me but not sure if it fits this issue.
Prompted it to investigate a given part of the code + list bugs found + create github issues. Not sure how much "creating github issues" can be seen as "editing" but kinda strikes me as something that shouldn't have been done in plan mode.
eyevz commentedon May 8, 2026
Hah, I have the opposite problem - a model refusing pointblank to even attempt to modify a file while in Plan mode, even when the file is at an explicitly allowed location like
<root>/.opencode/plans/foo.md.ekoleszar commentedon Jun 11, 2026
Similar issue here:
The user is calling me out - I applied changes (via sed) while in plan mode, which the system reminder explicitly forbids. I need to acknowledge this mistake honestly.
Looking back at the conversation:
I made a mistake by applying edits in plan mode. The user explicitly asked me to apply ("dale", "Si, aplicá"), but the plan mode was still active and I should have asked the user to switch modes before making changes.
I should apologize and acknowledge the error.
I'm using Opencode version 1.17.1
github-actions commentedon Aug 11, 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.