[BUG] Plan mode remains active after selecting 'Yes, clear context and auto-accept edits' (option 1)

Resolved 💬 3 comments Opened Mar 11, 2026 by chy5301 Closed Mar 11, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

After completing a plan in plan mode, the ExitPlanMode tool presents several options. When selecting option 1 "Yes, clear context and auto-accept edits", the context is cleared and a new session is created as expected, but the new session remains in plan mode instead of switching to auto-accept (act) mode.

Claude continues to operate in read-only plan mode in the new session, refusing to make any edits. The only workaround is to manually press Shift+Tab to cycle the permission mode back to act/auto-accept mode.

What Should Happen?

After selecting "Yes, clear context and auto-accept edits", the new session should enter auto-accept mode (act mode) and begin implementing the plan immediately — not remain stuck in plan mode.

Steps to Reproduce

  1. Start Claude Code normally (no special flags)
  2. Enter plan mode via Shift+Tab or /plan
  3. Have Claude design an implementation plan (e.g., "plan how to refactor module X")
  4. When Claude calls ExitPlanMode and the approval prompt appears, select option 1: "Yes, clear context and auto-accept edits"
  5. Observe that the context is cleared and a new session starts
  6. Bug: The new session is still in plan mode — Claude does not execute the plan, and instead continues in read-only planning behavior
  7. Must manually press Shift+Tab to switch to auto-accept mode for Claude to start working

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Not certain of the exact version. This was not observed prior to updating to 2.1.72 — earlier versions (possibly 2.1.71 or before) handled this transition correctly. I did not encounter this issue before the update, though I cannot confirm the exact last working version as I did not track when I last used plan mode prior to the upgrade.

Claude Code Version

2.1.72

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

  • Workaround: Press Shift+Tab after the new session starts to manually switch out of plan mode
  • Possibly related to #26832 (silent session split in plan mode) and #32934 (ExitPlanMode fails to exit plan mode)
  • The issue suggests that while "clear context" correctly creates a new session, it does not properly propagate the intended permission mode (auto-accept) to the new session — instead it inherits/retains the plan mode from the previous session

View original on GitHub ↗

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