[BUG] Remaining Context Reporting Completely Broken

Resolved 💬 3 comments Opened Oct 25, 2025 by nicosuave Closed Oct 29, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Remaining context becomes full randomly despite /context slash command reporting lots of headroom.

It's very painful to use Claude Code due to this; the /compact slash command breaks as well when this occurs.

I consistently am forced to quit Claude Code, to resume a session, and only then am I even able to run the/compact slash command.

!Image

What Should Happen?

Context length should be accurately reported

Error Messages/Logs

Steps to Reproduce

idk

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

1.x

Claude Code Version

2.0.27

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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