Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
packages/contracts or packages/shared
Steps to reproduce
- Connect two environments signed in to the same Claude account.
- Environment A has an older cached usage read (checked 09:00) whose account plan is Claude Team Subscription.
- Environment B has a newer read (checked 09:59) whose plan is Claude Max Subscription, 7% session used.
- Open Usage → Limits → All environments and hover the account's segment.
Expected behavior
The pooled account shows the plan from the same snapshot whose quota it shows: Claude Max Subscription, 93% left.
Actual behavior
The popover shows Claude Team Subscription next to 93% left from the newer Max read. Swapping the environment order changes the label, though the data is identical.
I hit this after fixing misconfigured logins on my remote machines. All four hosts' fresh Claude probes reported Claude Max, but the pooled popover kept showing Team, so the fix looked like it hadn't worked.
Cause
collectLimitAccounts in packages/shared/src/usageLimits.ts picks the fresher snapshot (winner, by limits.checkedAt) for quota, but takes the plan from whichever environment came first:
t3code/packages/shared/src/usageLimits.ts
Lines 213 to 218 in d7a8d6f
| const winner = fresher ? next : previous; | |
| const creditSource = creditSources.get(key); | |
| accounts.set(key, { | |
| ...previous, | |
| displayName: previous.displayName ?? next.displayName, | |
| plan: previous.plan ?? next.plan, |
previous.plan ?? next.plan keeps the first non-empty plan, even when the winning snapshot reports a different one.
Suggested fix
Take the plan from the freshest snapshot that reports one, tracked the same way the merger already tracks the freshest reset-credit source. A newer read without a plan then keeps the newest known label, and the result doesn't depend on environment order.
PR: #24069, with a regression test covering two- and three-snapshot cases in several orders. Web, desktop and mobile's pooled Limits all use this helper. No contract or adapter change.
Impact
Minor bug or occasional failure
The label is wrong; quota numbers and enforcement are unaffected.
Version or commit
t3 0.1.3-nightly.20261023.3566; reproduced on main d7a8d6f320
Environment
Desktop client pooling two Linux and two macOS hosts (Claude on all four)
Logs or stack traces
# regression test against main
Expected: "Claude Max Subscription"
Received: "Claude Team Subscription"Workaround
None reliable. The label corrects itself only when the first-listed environment refreshes its own plan.
Related reports
- fix(usage): weight pooled windows by supported plan capacity #13675 weights pooled quota by plan capacity; it doesn't touch which plan label wins.
- [Bug]: Limits bar labels pooled accounts by number, so accounts cannot be told apart #11880 (pooled account labels) is the same popover but a different field.
Activity
[-][Bug]: Pooled usage keeps an older subscription plan while showing newer quota[/-][+][Bug]: Pooled Limits shows an older subscription plan next to newer quota for the same account[/+]t3dotgg commentedon Oct 31, 2026
Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Closing: this is covered by #25214, which landed. Reopen if an important part is still missing.