Skip to content

Both /compact command and auto-compaction broken - 'conversation too long' error #18211

Description

@caffeinebounce

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

  1. Start a Claude Code session
  2. Have a conversation that uses some context
  3. Run /compact - fails with "conversation too long" error
  4. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions