[BUG] Plan mode: accepting plan is interpreted as rejection, creating infinite loop

Resolved 💬 2 comments Opened Mar 13, 2026 by saurabhav88 Closed Apr 10, 2026

Environment

  • Claude Code CLI (terminal, not VS Code)
  • macOS Darwin 25.4.0
  • Model: claude-opus-4-6

Bug Description

When in plan mode, after Claude presents a plan and the user selects the option to accept/submit the plan for execution, the system incorrectly interprets the acceptance as a rejection. Claude responds with something like "the user denied the plan" and re-presents the plan, creating an infinite loop where it's impossible to proceed to execution.

The only way out is to cancel and start over outside of plan mode.

Steps to Reproduce

  1. Start a task in Claude Code
  2. Enter plan mode (Shift+Tab or /plan)
  3. Claude generates a plan
  4. When prompted with the plan approval options, select the option to accept/execute the plan (option 1)
  5. Observe that Claude reports the plan was denied/rejected instead of accepted
  6. Claude loops back to presenting the plan again

Expected Behavior

  • Selecting the accept/submit option should approve the plan
  • Claude should exit plan mode and begin executing the approved plan

Actual Behavior

  • The accept selection is misinterpreted as a rejection
  • Claude says the user denied the plan
  • The plan is re-presented in an infinite loop
  • No way to proceed to execution from plan mode

Related Issues

  • #7320 — Similar misinterpretation of approval as rejection (file edits, closed)
  • #30463 — Plan mode blocks in don't-ask mode (different trigger, same area)
  • #4251 — ExitPlanMode infinite loop in SDK

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗