Prompt is too long /compact Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.
Resolved 💬 3 comments Opened Jan 14, 2026 by ECamposSoria Closed Feb 27, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
i can't compact conversation, also can't exit conversation and go back to it, it still don't allow me to compact
What Should Happen?
compact the conversation
Error Messages/Logs
Prompt is too long
/compact
Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.
Steps to Reproduce
reach full context , and then it won't compact , auto compact won't trigger
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
don't know
Claude Code Version
2.0.72 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗