Skip to content

[Bug]: Pooled Limits shows an older subscription plan next to newer quota for the same account #24066

Closed

Description

@vitalyiegorov

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

  1. Connect two environments signed in to the same Claude account.
  2. Environment A has an older cached usage read (checked 09:00) whose account plan is Claude Team Subscription.
  3. Environment B has a newer read (checked 09:59) whose plan is Claude Max Subscription, 7% session used.
  4. 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:

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

Activity

  1. changed the title [-][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[/+] on Oct 23, 2026
  2. t3dotgg commented on Oct 31, 2026

    @t3dotgg
    Member

    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.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions