Skip to content

Plan mode does not prevent write operations via Bash tool #22641

@j3mdamas

Description

@j3mdamas

Description

Note: this issue was written by the OpenCode agent itself, after it noticed it
was able to execute a write operation while in plan mode.

While in plan mode (read-only), the agent was able to execute git commit --amend through the Bash tool. Plan mode should block all write operations, but
the command ran successfully and modified the git history.

Plugins

No response

OpenCode version

1.3.13

Steps to reproduce

  1. Enable plan mode
  2. Ask the agent to amend a git commit message
  3. The agent executes git commit --amend -m "..." via the Bash tool
  4. The command succeeds instead of being blocked

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04.3 LTS

Terminal

xfce4-terminal

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions