[BUG] Remaining context percentage no longer represents actuality

Status Fixed / completed
Maintainer reply ✓ Yes — sid374
Activity 5 comments · opened Jun 3, 2025 · closed Jun 10, 2025
💡 Likely answer: A maintainer (sid374, contributor) responded on this thread — see the highlighted reply below.

Environment

  • Platform (select one):
  • [ x] Anthropic API (CLI/TUI)
  • Claude CLI version: 1.0.9
  • Operating System: mac
  • Terminal: ghostty/zsh

Important detail: I am in manual /compact mode (not auto)

Bug Description

The percentage is wrong. I get consistent failures now before reaching 0.
I can no longer send any message other than my /compact (which works, but this is annoying as I tend to have strategic compact strategy in conjunction with how I have the agents manage context and task progress).

<img width="888" alt="Image" src="https://github.com/user-attachments/assets/3579bdde-0128-4289-ba72-e173d33ad9bf" />

View original on GitHub ↗

5 Comments

backnotprop · 1 year ago

I guess I expect this to always hit 0... sort of like recklessly driving on empty with a gas tank. And im frustrated because I got used to that. Now it seems a bit less obvious.

Maybe this makes sense if the new message would drive it to 0, or max return tokens?... but I'm not pasting a bunch of tokens in that input, no input works at this point.

guidedways · 1 year ago

Although isn't this expected? The 32k context it's adding on top of the existing one sounds like it performed (or allocated) space for extended thinking but since that + the existing context exceeds total context, no point trying?

backnotprop · 1 year ago

Yea I get that - but as a user being able to drive down to empty was preferable UX / the 0 gave me much better awareness, now my new 0 is 10%. Nitty UX thing

sid374 contributor · 1 year ago

Thanks for the report - we pushed some fixes out for context management recently and this should hopefully feel much better. Please feel free to reopen if you're still seeing issues with the context remaining %

github-actions[bot] · 1 year ago

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.