claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Context Window Compaction Fails Before Reaching 0% Remaining

Open ivg-design opened this issue 1 year ago • 4 comments

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.

ivg-design avatar Sep 25 '25 11:09 ivg-design


Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/7692
  2. https://github.com/anthropics/claude-code/issues/8050
  3. 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


github-actions[bot] avatar Sep 25 '25 11:09 github-actions[bot]

I have had it too. One took 6.5 mins before it finally stopped spinning. Useless waste of time. :(

FlowTether avatar Sep 25 '25 12:09 FlowTether

This should be fixed in 2.0.31.

amorriscode avatar Nov 03 '25 03:11 amorriscode

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.

github-actions[bot] avatar Nov 10 '25 14:11 github-actions[bot]