[Bug] Context usage discrepancy between CLI and web/desktop UI causing incorrect billing
Bug Description
In Claude CLI it says Context 100% and is using my funds form my account.. But in the web UI and desktop app:
Current session 0%
All models 55%
Why the difference? why is my context usgae not showing in the web interface? Because of this error claude has burned through $40 worht of credit.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.156
- Feedback ID: 250bff45-0e6f-4db8-b59c-336ff056ad5d
Errors
[{"error":"Error: 401 The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:63853)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-30T11:24:26.764Z"}]
<img width="1415" height="136" alt="Image" src="https://github.com/user-attachments/assets/f9219b51-3f67-46a3-b065-966ea25edb2c" />
<img width="1415" height="136" alt="Image" src="https://github.com/user-attachments/assets/493da3a0-fa0b-4d44-812c-1d757df70c9e" />
<img width="1415" height="351" alt="Image" src="https://github.com/user-attachments/assets/f8ac5993-fb60-4acf-b272-0155c3a51c4c" />
<img width="1166" height="406" alt="Image" src="https://github.com/user-attachments/assets/f9de077f-b5e5-4fcc-9184-5e50da0223a2" />
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗