-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
area:corebugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existshas reproHas detailed reproduction stepsHas detailed reproduction stepsmemoryoncallplatform:macosIssue specifically occurs on macOSIssue specifically occurs on macOS
Description
Preflight Checklist
- I have searched existing issues and this hasn't been reported yet
- This is a single bug report (please file separate reports for different bugs)
- I am using the latest version of Claude Code
What's Wrong?
The /compact command fails with an error message stating "Conversation too long. Press esc twice to go up a few messages and try again." This prevents users from compacting their conversation history when the conversation becomes lengthy.
What Should Happen?
The /compact command should successfully compress the conversation history regardless of length, summarizing previous messages while preserving important context. Users should be able to compact conversations of any reasonable size to manage token usage and maintain conversation continuity.
Error Messages/Logs
Steps to Reproduce
- Start a new conversation in Claude Code
- Have an extended conversation with multiple tool calls, file reads, and edits (likely 50+ messages)
- Run the /compact command
- Observe the error: "Error during compaction:Error: Conversation too long. Press esc twice to go up a few messages and try again."
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
1.0.111
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
No response
svnlto, bartlomiejwolk, fostercalls, WebsiteMobil, stevenfazzio and 79 more
Metadata
Metadata
Assignees
Labels
area:corebugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existshas reproHas detailed reproduction stepsHas detailed reproduction stepsmemoryoncallplatform:macosIssue specifically occurs on macOSIssue specifically occurs on macOS