You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] usage slash command gets stuck in loading state after terminal is idle for several hours #21637
I have searched existing issues and this hasn't been reported yet
This is a single bug report (please file separate reports for different bugs)
I am using the latest version of Claude Code
What's Wrong?
The /usage slash command works correctly when a Claude Code session is freshly started.
However, if the system terminal stays idle for several hours, invoking /usage again (either by typing it manually or cycling to it with the Tab key) causes the command to remain stuck in a loading state, and it never returns the current session usage information.
At this point, no usage data is displayed, even though the session itself is still active and other interactions may continue to work.
Restarting the Claude Code session fully resolves the issue.
What Should Happen?
The /usage command should reliably load and display the current session usage information regardless of how long the terminal has been idle, as long as the session is still valid.
If the underlying session has expired or become invalid, the command should fail gracefully with a clear error message instead of hanging indefinitely in a loading state.
Error Messages/Logs
Steps to Reproduce
Start a new Claude Code session in a system terminal.
Run the /usage slash command and confirm it loads correctly.
Leave the terminal idle (no input) for several hours.
Return to the terminal and:
Press / and use Tab to cycle to usage, or
Manually type /usage and execute it.
Observe that the command remains stuck in a loading state and does not display session usage information.
Restart the Claude Code session.
Run /usage again and confirm it works as expected after restart.
can confirm. exactly the same problem, /usage just freezes in any session that was idle for longer than ~1 hour. Powershell 7.5, Windows 11, Claude 2.1.1.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
PeakProductivity commentedon Feb 1, 2026
can confirm. exactly the same problem, /usage just freezes in any session that was idle for longer than ~1 hour. Powershell 7.5, Windows 11, Claude 2.1.1.
github-actions commentedon Mar 2, 2026
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
github-actions commentedon Mar 10, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.