claude-code - 💡(How to fix) Fix Plan mode persists in ambiguous state when ExitPlanMode is rejected rather than approved

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Describe the bug

When a user rejects the \ExitPlanMode\ tool call (rather than approving it) and instead gives a direct instruction like 'Proceed with the plan', plan mode remains technically active in the system but the model receives a conflicting signal — the user's explicit instruction to act.

This creates an ambiguous state with two observable problems:

  1. The model inconsistently follows plan mode restrictions for the remainder of the session, making edits when given explicit 'apply it' instructions but treating those as equivalent to formal plan approval.
  2. Eventually the model made an edit without explicit user approval — the exact behaviour plan mode is designed to prevent.

Steps to reproduce

  1. Trigger plan mode (e.g. via a task that requires planning)
  2. When the model calls \ExitPlanMode, reject it and instead say something like 'I have made a backup — proceed with the plan'
  3. Continue the session giving conversational approvals ('apply it', 'go ahead') for subsequent changes
  4. Observe the model making edits throughout, despite plan mode never being formally exited

Expected behaviour

Either: plan mode restrictions are enforced strictly regardless of conversational approvals until \ExitPlanMode\ is formally accepted — or: rejecting \ExitPlanMode\ with an explicit 'proceed' instruction should be treated as approval and exit plan mode cleanly.

Actual behaviour

Plan mode persists as an active system state but is inconsistently enforced, ultimately resulting in an edit being made without explicit user approval.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Plan mode persists in ambiguous state when ExitPlanMode is rejected rather than approved