[Bug] Status line displays incorrect context usage percentage contradicting /context command
Bug Description
Bug: Status line shows incorrect context usage percentage, contradicting /context breakdown
Steps to reproduce:
Run /clear
Run /model, switch to Haiku 4.5 (saved as default)
Run /context — shows 27.7k/200k tokens (14%), Free space 86.2%
Status line at bottom of terminal shows "88% context used"
The two numbers directly contradict each other. This happened immediately after /clear, with almost no conversation history (only 239 tokens of messages per the /context breakdown), so there's no legitimate reason for 88% usage.
Model: claude-haiku-4-5-20251001, 200k context window. Permission mode: bypass permissions.
Also noted: switching to Opus (1M context window) makes the discrepancy disappear or become far less noticeable — likely because the same absolute token count that reads as ~88% against a 200k denominator becomes a much smaller percentage against a 1M denominator, possibly masking rather than fixing the underlying miscalculation.
The /context command's breakdown appears accurate; the status line percentage appears to be the buggy component.
Environment Info
- Platform: linux
- Terminal: vte-based
- Version: 2.1.200
- Feedback ID: 3f578eac-7e71-4340-8c11-76dd010cef14
Errors
[]