Plan mode UI stays active after ExitPlanMode succeeds
Resolved 💬 3 comments Opened Apr 24, 2026 by ersil Closed Apr 27, 2026
Description
After calling ExitPlanMode, the tool returns "User has approved exiting plan mode" but the UI continues to show plan mode as active. Subsequent messages still include the plan mode system reminder with all the plan mode constraints.
Steps to Reproduce
- Enter plan mode via
/plan - Do some work, write a plan file
- Call
ExitPlanMode— get confirmation "User has approved exiting plan mode" - UI still shows plan mode active
- System reminders in subsequent turns still include plan mode instructions
Expected Behavior
After ExitPlanMode returns success, plan mode should be fully deactivated — both in the UI indicator and in system reminders sent to the model.
Observed Behavior
ExitPlanMode returns success but plan mode persists. Had to work around it by ignoring the stale state. Happened multiple times in the same session.
Environment
- Claude Code CLI on macOS (Darwin 25.5.0)
- Model: claude-opus-4-6 (1M context)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗