anomalyco / anomalyco/opencode
Plan mode (read-only) allows write operations after answering the question tool
@kitlangton is already working on this.
Since Aug 7, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
While a session is in plan mode (read-only), answering the question tool
to approve a plan does not keep writes blocked. The agent then ran Edit/Write
operations on 4 files successfully, with no rejection from the harness or
permission system, even though the plan-mode system reminder was still active.
If approving via the question tool is meant to lift read-only, the plan mode
exit must be explicit; otherwise write tools must stay blocked while plan mode
is active.
Plugins
None (no plugins installed; only the default @opencode-ai/plugin SDK dependency present in user config, no plugin entries).
OpenCode version
1.18.15
Steps to reproduce
- Start a session in plan mode (read-only).
- Ask the user a question via the question tool (e.g., "apply the plan?").
- User selects an "approve" option in the question tool.
- Ask the agent to apply the changes.
- Observe that Edit/Write tools execute without being blocked.
Screenshot and/or share link
No response
Operating System
ubuntu 24.04.04
Terminal
Ghostty
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.