VS Code extension: inline usage indicator shows stale percentage vs Account & Usage panel (93% vs 100% for same 5hr session limit)
Open 💬 0 comments Opened Jul 12, 2026 by likeperple7
Bug description
In the VS Code extension, the inline usage warning above the input box and the Account & Usage panel report different values for the SAME metric (5-hour session limit) at the same moment:
- Inline warning above input box: "You've used 93% of ..."
- Account & Usage panel (and /usage): Session (5hr) = 100%
The inline indicator appears to be a stale/cached value that only updates after a request completes, while the panel fetches current data. This is confusing because the user believes they still have headroom when the limit is actually already exhausted.
Environment
- Claude Code version: 2.1.204
- Platform: Windows 10 Education 10.0.19045
- Interface: VS Code extension
- Plan: Claude Pro
Steps to reproduce
- Work until close to the 5-hour session limit
- Compare the inline usage warning above the input box with the Account & Usage panel /
/usageoutput - The panel consistently shows a higher (more current) percentage than the inline indicator
Expected
Both surfaces should show the same, current percentage, or the inline indicator should refresh when displayed.
(Screenshot attached showing 93% inline vs 100% in the panel.)
<img width="647" height="577" alt="Image" src="https://github.com/user-attachments/assets/83eb3153-88a9-4060-90a4-6f5d4bc0a95a" />