[BUG]

Resolved 💬 3 comments Opened Aug 21, 2025 by enrico-galluccio7 Closed Aug 25, 2025

Environment

  • Platform (select one):
  • [ X] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: <!-- 1.0.86 -->
  • Operating System: <!-- macOS 15.6 -->
  • Terminal: <!-- Terminal -->

Bug Description

<!--If I call the /context command, I see I have plenty of context available (80%), but then I on the bottom right you can see context is at 0%. See image.
Basically whenever I /clear all the context, it get immediately reset to 130k+ tokens with a simple "hello Claude". The issue is real and not only visual, as then I get a 400 because of context exceeded.
And this implies I only have 40k tokens each time until my context end and I need to reset/compact. This discrepancy seems a bug, but have not been able to solve it in any way (logging out, unisntalling, changing project, etc.). See image to check the issue, is very self explanatory: context low on the bottom right, while /context shows more than 80% free-->

<img width="3002" height="614" alt="Image" src="https://github.com/user-attachments/assets/da41bb5e-3ffa-48d7-a5a3-755be4ed1c1e" />

Steps to Reproduce

  1. <!-- /context -->
  2. <!-- check the context free on bottom right -->
  3. <!-- And so on... -->

Expected Behavior

<!-- Should the same -->

Actual Behavior

<!-- COntecxt finishes while /context is > 90% -->

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗