[Bug] Context Window Compaction Fails Before Reaching 0% Remaining
Bug Description with 5% left in the context window i still cannot compact without getting "conversation too long" error - what is the point of having a warning that is not relevant if i can't compact i don't need a warning...
it used to be that i was able to work to 0% and then compact while now i keep bumping into this issue all the time!
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.123
- Feedback ID: d59764d5-001b-44e2-9c3a-f4e38ceabb10
Errors
Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/7692
- https://github.com/anthropics/claude-code/issues/8050
- https://github.com/anthropics/claude-code/issues/7594
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
I have had it too. One took 6.5 mins before it finally stopped spinning. Useless waste of time. :(
This should be fixed in 2.0.31.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.