Plan mode auto-clear on accept not working (v2.1.81)
Status Fixed / completed
Reported on v2.1.81
Maintainer reply ✓ Yes — bcherny
Workaround ✓ Mentioned in description ↑
Activity 3 comments · opened Mar 23, 2026 · closed Mar 26, 2026
💡 Likely answer: A maintainer (bcherny, collaborator)
responded on this thread — see the highlighted reply below.
Description
v2.1.81 changelog states context auto-clears on plan accept. In practice, multiple ExitPlanMode cycles in a single session did not clear context. Session accumulated to 40%+ context utilization across 6+ plan mode entry/exit cycles.
Steps to Reproduce
- Enter plan mode (EnterPlanMode)
- Do substantial planning work (file reads, agent dispatches, plan file edits)
- Exit plan mode (ExitPlanMode) - plan is approved
- Do execution work
- Re-enter plan mode for refinements
- Exit again
- Repeat 4-6 times
Expected
Context should auto-clear on each plan accept per changelog: "Changed plan mode to hide the 'clear context' option by default"
Actual
Context accumulated across all cycles. No automatic clearing occurred. Session hit 40%+ context with compaction warning.
Environment
- Claude Code version: 2.1.81
- Platform: Windows 11 (10.0.26200)
- Surface: Antigravity (Google VS Code fork)
- Model: Claude Opus 4.6 (1M context)
Workaround
Added showClearContextOnPlanAccept: true to settings to restore the manual clear option.
3 Comments
Found 1 possible duplicate issue:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This was unshipped because you don't need this anymore with 1M context! To opt back into it, ask Claude to set
showClearContextOnPlanAccept: truein your settings.json. See docs: https://code.claude.com/docs/en/settings.This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.