claude-code - 💡(How to fix) Fix Plan mode ExitPlanMode button misleadingly shows 'ready to code' prompt

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…

Root Cause

  1. Enter plan mode (e.g., to write a plan document)
  2. Write the plan to a file
  3. User asks to push the plan to a branch/PR (requires git commands)
  4. Agent calls ExitPlanMode — user sees a prompt that looks like "ready to implement"
  5. User rejects because they don't want implementation, just a git push
  6. Agent is stuck in read-only plan mode unable to run any commands
RAW_BUFFERClick to expand / collapse

Problem

When an agent calls ExitPlanMode to exit plan mode (even just to run a simple git command), the UI presents a prompt to the user that appears to indicate the agent is about to start coding/implementing. This causes users to reject the action when the agent's actual intent is just to leave the read-only plan mode state.

Steps to reproduce

  1. Enter plan mode (e.g., to write a plan document)
  2. Write the plan to a file
  3. User asks to push the plan to a branch/PR (requires git commands)
  4. Agent calls ExitPlanMode — user sees a prompt that looks like "ready to implement"
  5. User rejects because they don't want implementation, just a git push
  6. Agent is stuck in read-only plan mode unable to run any commands

Expected behavior

The ExitPlanMode UI should make it clear that this is simply exiting the read-only state, not committing to implement the plan. Perhaps:

  • "Exit plan mode" (neutral) instead of language suggesting coding is about to begin
  • Or allow the agent to provide context text that's shown to the user (e.g., "Exiting to run git commands — no implementation")

Impact

In the observed case, the user had to reject ExitPlanMode 3 times before understanding (via back-and-forth) that it was just a state transition, not an implementation trigger. This created unnecessary friction.

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…

FAQ

Expected behavior

The ExitPlanMode UI should make it clear that this is simply exiting the read-only state, not committing to implement the plan. Perhaps:

  • "Exit plan mode" (neutral) instead of language suggesting coding is about to begin
  • Or allow the agent to provide context text that's shown to the user (e.g., "Exiting to run git commands — no implementation")

Still need to ship something?

×6

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

Back to top recommendations

TRENDING