[BUG] Running `/compact` when usage limit reached destroys entire context
Resolved 💬 4 comments Opened Aug 2, 2025 by jaens Closed Aug 15, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.67 (Claude Code)
- Operating System: Debian Trixie
- Terminal: VSCode
Bug Description
When running /compact and the usage limit is reached, the entire session will be lost and the context will be replaced with
====================================================== Previous Conversation Compacted ======================================================
● Compact summary
⎿ This session is being continued from a previous conversation that ran out of context. The conversation is summarized below:
Claude AI usage limit reached|1754161200.
Steps to Reproduce
- Reach limit
- Run
/compact
Expected Behavior
Conversation is not compacted.
Actual Behavior
Conversation is replaced with "Claude AI usage limit reached|1754161200".
Additional Context
Log is above.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗