Plan mode exit prompt: hide 'clear context' option when auto-compact is enabled
Summary
When CLAUDE_AUTOCOMPACT_PCT_OVERRIDE is set (auto-compact enabled), the plan mode exit prompt still shows "Yes, clear context (N% used) and bypass permissions" as the first option. This is redundant — auto-compact already manages context automatically, so manually clearing context is unnecessary and confusing.
Current behavior
After a plan is written, the exit prompt always shows:
1. Yes, clear context (69% used) and bypass permissions
2. Yes, and bypass permissions
3. Yes, manually approve edits
4. Type here to tell Claude what to change
Option 1 implies the user needs to manage context manually, which contradicts the auto-compact setting.
Expected behavior
When auto-compact is enabled (CLAUDE_AUTOCOMPACT_PCT_OVERRIDE is set or autoCompact is on), either:
- Hide option 1 entirely (auto-compact handles it), or
- Add a setting like
planModeAutoApprove: trueto skip the prompt altogether, or - Auto-select option 2 when auto-compact is active
Environment
- Claude Code (CLI)
- macOS
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=80set in~/.claude/settings.jsonenv block
Why this matters
Users who've configured auto-compact have already opted into automatic context management. Showing them a manual "clear context" option on every plan exit adds friction and decision fatigue for a choice that's already been made.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗