Cascading failure: auto-compaction, /compact, and rewind all fail at context limit — requires Ctrl+C to escape
Resolved 💬 7 comments Opened Feb 17, 2026 by sjdodge123 Closed Mar 26, 2026
Description
When a conversation hits the context limit, a cascading series of failures occurs with no graceful recovery:
- Auto-compaction triggers when context limit is reached, but errors out:
````
Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.
- Manual
/compactalso fails with the same error — despite being the suggested remedy for hitting the context limit.
- Rewind is offered as a fallback, but that also fails:
````
Error: Failed to summarize:
Error: Conversation too long. Press esc twice to go up a few messages and try again.
- Session becomes unresponsive after the rewind error — the only way to escape was Ctrl+C to kill the process. No further input was accepted.
Screenshot
!Screenshot showing the cascading errors
(See description above for the full error sequence)
Impact
Complete loss of session context and any in-progress work state. The user is forced to hard-kill the process and start fresh with /clear or a new session.
Expected Behavior
- Compaction (auto or manual) should handle conversations at the context limit — that's its primary purpose
- If compaction fails, the session should remain interactive (not hang)
- There should always be a graceful exit path that doesn't require Ctrl+C
Environment
- Claude Code CLI
- Model: claude-opus-4-6
- macOS (Darwin 25.1.0)
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗