[BUG] bug in context handling from Claude (context limits warning when /context shows > 80% free

Resolved 💬 4 comments Opened Aug 21, 2025 by enrico-galluccio7 Closed Aug 22, 2025

Environment

  • Platform (select one):
  • [X] Anthropic API <!-- Remove space between [ and X -->
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other:
  • Claude CLI version: 1.0.86 <!-- Move this outside comment -->
  • Operating System: macOS 16.5
  • Terminal: Terminal

Bug Description

If I call the /context command, I see I have plenty of context available (80%), but then on the bottom right you can see context is at 0%. See image.

Basically whenever I /clear all the context, it gets 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. This discrepancy seems a bug, but have not been able to solve it in any way (logging out, uninstalling, changing project, etc.)

Steps to Reproduce

  1. Run /context command
  2. Compare with context left on the bottom right
  3. Note the discrepancy

Expected Behavior

Context values should match between /context command and bottom right display

Actual Behavior

Low context shown in bottom right when /context shows plenty available

Additional Context

Image below is self explanatory:

<img width="3002" height="614" alt="Image" src="https://github.com/user-attachments/assets/12c72921-41c1-4228-aba5-5cd558668fde" />

View original on GitHub ↗

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