anomalyco / anomalyco/opencode

Plan mode (read-only) allows write operations after answering the question tool

Open
#41,133 1 comment 0 reactions 1 assignee View on GitHub

@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
  1. Start a session in plan mode (read-only).
  2. Ask the user a question via the question tool (e.g., "apply the plan?").
  3. User selects an "approve" option in the question tool.
  4. Ask the agent to apply the changes.
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.