Description
Both manual /compact and automatic compaction are broken. The /compact command consistently fails with "Conversation too long. Press esc twice to go up a few messages and try again" even when there is available context remaining.
Additionally, auto-compaction is also not working - the system does not automatically compact when approaching token limits as expected.
Environment
- Claude Code version: Latest (as of 2025-01-14)
- OS: macOS (Darwin 25.2.0)
- Model: claude-opus-4-5-20251101
Steps to Reproduce
- Start a Claude Code session
- Have a conversation that uses some context
- Run
/compact - fails with "conversation too long" error
- Continue conversation until approaching limits - auto-compaction does not trigger
Expected Behavior
/compact should summarize and reduce context when there's available space
- Auto-compaction should trigger when approaching token limits
Actual Behavior
/compact always fails with "conversation too long" regardless of actual usage
- Auto-compaction does not trigger
Related Issues
This appears related to previously reported issues:
However, those issues focus on /compact - this report confirms auto-compaction is also broken, making the suggested workaround ineffective.
Impact
Without working compaction (manual or automatic), users must manually manage sessions by starting new ones, losing conversation continuity. This significantly impacts long-running sessions and complex multi-step tasks.
Description
Both manual
/compactand automatic compaction are broken. The/compactcommand consistently fails with "Conversation too long. Press esc twice to go up a few messages and try again" even when there is available context remaining.Additionally, auto-compaction is also not working - the system does not automatically compact when approaching token limits as expected.
Environment
Steps to Reproduce
/compact- fails with "conversation too long" errorExpected Behavior
/compactshould summarize and reduce context when there's available spaceActual Behavior
/compactalways fails with "conversation too long" regardless of actual usageRelated Issues
This appears related to previously reported issues:
However, those issues focus on
/compact- this report confirms auto-compaction is also broken, making the suggested workaround ineffective.Impact
Without working compaction (manual or automatic), users must manually manage sessions by starting new ones, losing conversation continuity. This significantly impacts long-running sessions and complex multi-step tasks.