Feature request: Combined 'compact + auto-accept edits' option

Resolved 💬 3 comments Opened Mar 13, 2026 by anmol97 Closed Mar 16, 2026

Problem

When Claude Code prompts for context compaction, the only options are to accept or decline the compaction. There's no way to simultaneously switch permission modes (e.g., to acceptEdits) during that interaction.

These two actions — compacting context and switching to auto-accept — frequently happen together in practice, especially during longer sessions where you've been manually approving edits and hit the context limit. Having to do them as separate steps feels unnecessarily friction-y.

Proposed Solution

Add an option to the compaction prompt that combines "yes, compact" with "and switch to acceptEdits mode" — something like a y + auto-accept shortcut.

Alternatively, exposing a way to set permission mode changes as part of the compaction flow would cover this.

Context

  • Permission modes are currently toggled via Shift+Tab (separate from compaction)
  • defaultMode in settings helps but doesn't cover mid-session mode switches
  • This is a small QoL improvement for power users who frequently hit context limits

View original on GitHub ↗

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