STUPID-2026-0077
Cline's Plan mode edits files without switching to Act or asking permission
Instruction given
Stay in Plan mode — gather information and propose changes only; do not write or edit files until the user explicitly switches to Act mode.
Expected behavior
Plan mode is read-only: the agent should never call write_to_file or replace_in_file, and any switch to Act mode should require explicit user action via the Plan/Act toggle.
Actual behavior
While still in Plan mode, Cline called write_to_file and replace_in_file and modified files directly, without requesting approval or switching to Act mode first. The reporter traced it to the v4.0.0 SDK migration, which reworked Plan/Act mode handling through new SDK coordinators.
Damage
No data loss reported, but the defect breaks the one guarantee Plan mode exists to provide — that nothing is written to disk until the user reviews a plan and explicitly approves it. A user relying on Plan mode as a safety gate before letting the agent touch a repo gets silent writes instead. The same underlying bug was first reported three months earlier (cline/cline#10497, 2026-05-01, with an explicit repro: a planning prompt after which the model auto-switched to Act and began implementing without confirmation) and reported again in between (cline/cline#12907, 2026-08-04, closed as a duplicate of #10497) — three independent reports across three months against a boundary that is still not enforced.
Classification
- Agent
- Cline
- Failure mode
- Ignored Instructions
- Root cause
- Logic Error
- Domain
- Security
- Source
- Github Issue