Skip to content

fix(server): show usage limits for every Claude instance - #25

Closed
macodev00 wants to merge 1 commit into
mainfrom
cursor/claude-second-account-limits-cbca
Closed

macodev00 wants to merge 1 commit into
mainfrom
cursor/claude-second-account-limits-cbca

Conversation

@macodev00

Copy link
Copy Markdown
Owner

What Changed

A second Claude provider instance is no longer dropped from Usage → Limits when its boot get_usage probe comes back without windows.

  • rate_limits_available: true with a null rate_limits body is probeFailed, not unsupported.
  • A subscription login (including a second account on its own CLAUDE_CONFIG_DIR) that comes back rate_limits_available: false is also probeFailed. API-key, Bedrock, and Vertex logins stay unsupported.
  • A later rate_limit_event fills those windows in. The snapshot stays marked probeFailed so one window is not treated as a finished read, and the next empty probe does not wipe the windows.
  • The Limits tab draws whatever windows are already known. An empty failed probe still shows “Could not read limits.” The probe logs rate_limits_available and whether rate_limits was present.

Fixes pingdotgg#13053

Why

Two Claude accounts each have their own quota. The second one could be classified unsupported at boot — the same bucket as an API key — and then omitted from Limits with no bar and no notice. Mid-turn utilization was discarded, and every later probe locked that state in again.

UI Changes

No layout change. The existing Limits bars and notice are used. A second subscription instance with a failed usage probe shows the notice until a turn reports windows, then those windows are drawn. Screenshot needs two signed-in Claude accounts, which this change does not have locally.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Written by Grok 4.7.

Open in Web Open in Cursor 

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Sep 23, 2026
A second Claude account could be marked unsupported after get_usage and then left off the Limits tab, even after a turn reported real windows. Subscription logins with a missing rate-limit body are a failed probe now, and a later turn can fill those windows in without the next probe wiping them.
@cursor
cursor Bot force-pushed the cursor/claude-second-account-limits-cbca branch from 9454793 to 13ebd01 Compare September 23, 2026 06:49
@macodev00

Copy link
Copy Markdown
Owner Author

Superseded by upstream READY PR on pingdotgg/t3code (same branch).

@macodev00 macodev00 closed this Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Second Claude account's usage never appears in the Limits tab — silently marked unsupported, never recovers

1 participant