Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Usage → Limits keeps showing a Claude window as exhausted after it resets; the refresh button serves a 5-minute cached probe #29557

Closedrobrab2000(GitHub profile, opens in a new tab) opened this issue 1 comment

Area

Usage / Limits (web, desktop, mobile), Claude provider

Steps to reproduce

  1. Let a Claude session (5-hour) window reach 100% used shortly before its reset time.
  2. Open Usage → Limits so the server probes Claude and records the pre-reset state.
  3. Wait for the reset time to pass.
  4. Click the refresh button on the Limits tab a few times.

Expected behavior

The refresh button re-asks the Claude CLI and the Session row shows the reset window (for example 11% used, resets in ~5 h).

Actual behavior

The Session row keeps showing 0% left with a resets now badge for up to five minutes, no matter how many times you refresh. Claude Code's own /usage screen on the same machine shows the window already reset.

Root cause: ClaudeDriver caches the capabilities probe (which carries the get_usage rate limits) for five minutes so background health checks stay cheap. The Limits tab refresh calls server.refreshProviders with an empty input, which goes through ProviderRegistry.refresh() and hits that cache. Only the model refresh path (refreshModels: true, used by the Settings provider panel) invalidates it. The server trace log confirms it: one real probe at 20:09:35 (1.4 s), then every refresh from 20:10 to 20:13 answered in under 400 ms from the cache.

Not the same as #19807, which is about hub sources re-probing on every refresh; this is the local provider probe never re-probing.

Impact

Users cannot tell whether they are actually rate limited after a reset without restarting the server or waiting out the cache. The stale badge also lies in the composer usage panel, which reads the same provider snapshot.

Version or commit

main @ 21da3061aa (desktop 0.1.1)

Environment

Windows 11, desktop app hosting the server, Claude Code CLI with a Max subscription.

Screenshots

Limits tab showing Session 0% left · resets now while the CLI /usage panel shows 11% used, same minute, same machine.

Workaround

Wait five minutes for the probe cache to expire and the next background check, or restart the server.

  1. tanstack-source added labelsbug

  2. This is the same problem as #28721, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  3. juliusmarminge closed this

Sign in to join this conversation.