claude-code - 💡(How to fix) Fix ExitPlanMode conflates 'exit plan mode' with 'approve and execute plan'

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…

ExitPlanMode is a state change — it should drop the plan-mode constraints. But the current prompt shows the plan and asks the user to approve executing it, framing exit as a commit-to-run action. They're separate concerns.

Root Cause

ExitPlanMode is a state change — it should drop the plan-mode constraints. But the current prompt shows the plan and asks the user to approve executing it, framing exit as a commit-to-run action. They're separate concerns.

RAW_BUFFERClick to expand / collapse

Summary

ExitPlanMode is a state change — it should drop the plan-mode constraints. But the current prompt shows the plan and asks the user to approve executing it, framing exit as a commit-to-run action. They're separate concerns.

Repro

  1. User and agent build a plan in plan mode.
  2. User implements the plan elsewhere (Codex, another session, by hand).
  3. User tells CC: "exit plan mode."
  4. Agent calls `ExitPlanMode`.
  5. User sees the original plan + an approval prompt with auto-mode toggle. No "exit" framing.

Expected

Prompt: `Exit Plan Mode?` Two buttons: `Exit` and `Stay in Plan Mode`. Whether the plan runs after exit is determined by the user's next instruction.

Actual

The only way to exit is to accept what reads as "approve this plan for execution," which implies CC will now run the plan. For users whose plan was completed externally, this is misleading and frequently rejected — leaving them stuck in plan mode with no clean exit.

Why it matters

Plan mode is increasingly used as a planning surface where execution happens elsewhere (Codex, parallel agents, human handoff). Coupling exit with execution breaks that workflow.

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