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
opencode in plan mode inside cursor is making edits to the codebase #2258
The issue #1682 describes a similar problem where plan mode system prompts are being dumped/repeated infinitely, which could manifest as the agent making unwanted edits instead of staying in plan mode as expected.
Feel free to ignore if none of these address your specific case.
I find that if thinking is disabled on the Anthropic models, then plan mode will often write to the files. With thinking, not so much.
Unfortunately, thinking mode is disabled by default, and it's not really clear for a user how to enable it, because the only documented way to do so is in a model configuration example in the docs.
What I experienced at least myself was that the (non-thinking) model would try to make an edit, and that edit would just... happen. No prompt asking the user, nothing. Autopilot.
On a fresh config, without any sort of permission overrides for slash commands or agents whatsoever.
I've just had the same issue on the terminal, with Claude Opus 4.5. At some point I've probably answer some permission requirements with the "accept always" option in case that has anything to do (but I'd expect Plan mode not to intend any edits in the first place, regardless of permissions).
Btw, superhappy with the tool in general, what an amazing piece of work you've done!!
Thanks for the info. As a quick update, over the last days I haven't had any unexpected edits on Plan mode, so it may be fixed now (at least for Opus 4.5).
Activity
github-actions commentedon Aug 26, 2025
This issue might be a duplicate of existing issues. Please check:
The issue #1682 describes a similar problem where plan mode system prompts are being dumped/repeated infinitely, which could manifest as the agent making unwanted edits instead of staying in plan mode as expected.
Feel free to ignore if none of these address your specific case.
smazurov commentedon Aug 26, 2025
yup, same here, not related to vscode integration (happens in terminal as well).
luisrudge commentedon Sep 7, 2025
yeah this is pretty consistent now.. most things that I ask in plan mode are being edited right away.
rekram1-node commentedon Sep 7, 2025
thx for raising I will look into it
Sewer56 commentedon Sep 7, 2025
I find that if thinking is disabled on the Anthropic models, then plan mode will often write to the files. With thinking, not so much.
Unfortunately, thinking mode is disabled by default, and it's not really clear for a user how to enable it, because the only documented way to do so is in a model configuration example in the docs.
pmatos commentedon Sep 8, 2025
I just noticed that Qwen3 code + planning mode also just starts editing the source code instead of formulating a plan.
rekram1-node commentedon Sep 8, 2025
when yall are saying it tries to edit, you are referring to how it prompts you with edits even tho it is in plan mode, correct?
Permission is required from user to actually make edits
luisrudge commentedon Sep 8, 2025
OC doesn't ask me anything.. I'm sure I already said 'always allow' or something in the past since I don't care about these permissions
rekram1-node commentedon Sep 8, 2025
@luisrudge what version are you on, that is unexpected behavior in plan mode (unless you always allowed it):
luisrudge commentedon Sep 8, 2025
0.6.5
Sewer56 commentedon Sep 8, 2025
What I experienced at least myself was that the (non-thinking) model would try to make an edit, and that edit would just... happen. No prompt asking the user, nothing. Autopilot.
On a fresh config, without any sort of permission overrides for slash commands or agents whatsoever.
On 0.6.4, when I made the comment above.
rekram1-node commentedon Sep 9, 2025
should be fixed in next release: #2505
rekram1-node commentedon Sep 14, 2025
closing for now lmk if anyone has more issues w/ plan mode
juanmpga commentedon Nov 30, 2025
I've just had the same issue on the terminal, with Claude Opus 4.5. At some point I've probably answer some permission requirements with the "accept always" option in case that has anything to do (but I'd expect Plan mode not to intend any edits in the first place, regardless of permissions).
Btw, superhappy with the tool in general, what an amazing piece of work you've done!!
Sewer56 commentedon Nov 30, 2025
This tends to happen with certain models and is model specific.
Qwen 3 Coder, Gemini 3, Opus 4.5 are ones I've seen it in.
They'll just use commands like
catto overwrite the files in plan mode.juanmpga commentedon Dec 9, 2025
Thanks for the info. As a quick update, over the last days I haven't had any unexpected edits on Plan mode, so it may be fixed now (at least for Opus 4.5).
alexfedosov commentedon Jan 13, 2026
Still happens pretty consistently with Gemini 3 Pro and opencode 1.0.167