[BUG] Session usage counter shows 38% used with no user activity after login
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?
After hitting the "out of extra usage" limit, I ran /login to start a new session. The Claude Code terminal showed no activity (idle > prompt). However, when checking claude.ai/settings/usage, the "Current session" counter showed 38% used approximately 50 minutes after login, despite zero user-initiated requests.
Steps to reproduce:
- Run Claude Code with
--channels(Telegram channel listener active) - Hit the "extra usage" limit (terminal shows: "You're out of extra usage")
- Run
/login - Leave the session idle for ~50 minutesExpected: Current session = 0% (or near 0%) with no activity
Actual: Current session = 38% used
Additional context:
- Weekly "All models" limit also increased ~8% (80% → 88%) during the same idle period
- Terminal showed no activity whatsoever - no tool calls, no responses, no channel messages received
- Claude Code v2.1.81, Sonnet 4.6
- OS: Windows 11
Hypothesis: Either the session counter is not properly reset after /login, or the --channels listener consumes tokens passively even when no messages arrive.
- Check claude.ai/settings/usage
What Should Happen?
Expected: Current session = 0% (or near 0%) with no activity
Actual: Current session = 38% used
Additional context:
- Weekly "All models" limit also increased ~8% (80% → 88%) during the same idle period
- Terminal showed no activity whatsoever - no tool calls, no responses, no channel messages received
- Claude Code v2.1.81, Sonnet 4.6
- OS: Windows 11
Hypothesis: Either the session counter is not properly reset after /login, or the --channels listener consumes tokens passively even when no messages arrive.
Error Messages/Logs
Steps to Reproduce
- Run Claude Code with
--channels(Telegram channel listener active) - Hit the "extra usage" limit (terminal shows: "You're out of extra usage")
- Run
/login - Leave the session idle for ~50 minutes
- Check claude.ai/settings/usage
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
4.6
Claude Code Version
v2.1.81
Platform
Other
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
<img width="1915" height="1078" alt="Image" src="https://github.com/user-attachments/assets/81f17986-0e96-4042-aa8a-bccf767e86b4" />
<img width="1835" height="1078" alt="Image" src="https://github.com/user-attachments/assets/871bcaba-f8d0-4711-8fcf-0eab8fc80550" />
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/ebe22ccf-5070-445b-ac6b-37ad74b0e22c" />
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗