Skip to content

[BUG] usage slash command gets stuck in loading state after terminal is idle for several hours #21637

Closed as not planned

Description

@ibarapascal

Preflight Checklist

  • 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.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.23

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Activity

  1. added
    bug
    on Jan 29, 2026
  2. added
    has repro
    platform:macos
    on Jan 29, 2026
  3. PeakProductivity commented on Feb 1, 2026

    @PeakProductivity
    Image

    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.

  4. added
    stale
    on Feb 15, 2026
  5. github-actions commented on Mar 2, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  6. github-actions commented on Mar 10, 2026

    @github-actions

    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.

  7. locked as resolved and limited conversation to collaborators on Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:tuibughas reproplatform:macosstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions