Skip to content

[Bug]: Pooled Claude weekly limit averages Pro and Max evenly, ignoring Max's larger allowance #40802

Closed as not planned

Description

@JonasW04

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 native Claude accounts: one on Claude Pro and one on Claude Max.
  2. Open Usage → Limits and look at the pooled Claude weekly limit.
  3. Compare it with each account's own weekly usage.

Expected behavior

The pooled weekly percentage reflects how much allowance each account has. A Max account has a much larger weekly allowance than a Pro account, so it should count for more in the pool than the Pro account does.

Example: Max at 100% used and Pro at 0% used. With the same 5:1 weight T3 already uses for the Claude session window, the pool should show about 17% remaining.

Actual behavior

The pool takes a plain average of the two accounts' weekly usage percentages. In the example above it shows 50% remaining, which overstates the capacity left by about 3x. The pool counts 1% of a Pro weekly allowance the same as 1% of a Max weekly allowance.

Cause

planCapacity in packages/shared/src/usageLimits.ts (main @ 5fc2eb2) returns a weight for Claude only when kind === "session":

// Claude's published plan multipliers describe the session allowance only.
const CLAUDE_SESSION_CAPACITY: Record<string, number> = { Pro: 1, Max: 5, Ultra: 20 };
...
if (account.driver === "claudeAgent" && kind === "session") {
  return CLAUDE_SESSION_CAPACITY[account.plan];
}
return undefined;

For the weekly window it returns undefined, so the pool falls back to members.map(() => 1) and every account counts once. Codex weights both its session and weekly windows by plan.

A second problem compounds this one. #36555 found that native Claude auth labels the plan Claude Max Subscription / Claude Pro Subscription, while CLAUDE_SESSION_CAPACITY has only the bare keys Max, Pro and Ultra. The lookup then misses, so even the session pool falls back to equal weights for native accounts. #36555 was closed as not reproducible because no worker had two live Claude accounts on different tiers. I have that setup and see the even split in the pooled weekly view.

Suggested fix

  • Weight the Claude weekly pool by plan too. Anthropic doesn't publish exact weekly multipliers, but Max's weekly allowance is several times Pro's, so the session multipliers are a closer estimate than equal weights. If that estimate is too loose, don't pool Claude weekly windows across tiers and show each account on its own.
  • Strip the Claude prefix and Subscription suffix from the native plan label before the capacity lookup, as [Bug]: Native Claude plans are weighted equally in pooled session limits #36555 describes.

Impact

Minor bug or occasional failure. The pooled weekly number is misleading: it can show half the weekly capacity left when the Max account, which holds most of the capacity, is used up.

Version or commit

pingdotgg/main @ 5fc2eb2 (code reference)

Environment

macOS, desktop app, native Claude provider with one Pro and one Max account.

Workaround

Read each account's weekly limit on its own instead of the pooled bar.

Related: #36555 (same label mismatch, session window), #13110 (the Codex version of this bug, fixed).

Activity

  1. juliusmarminge commented on Nov 22, 2026

    @juliusmarminge
    Member

    I tried to reproduce this on the current build and could not.

    No live app run: pooling two native Claude accounts on different tiers needs first-party Claude OAuth for two accounts, which no worker has. Logic reproduction on origin/main 997103b: in packages/shared/src/usageLimits.test.ts I turned the existing 'weights pooled Codex quota and resets by each account's plan capacity' case into an it.each table and added two claudeAgent rows. Both use plans 'Claude Max Subscription' (100% used) and 'Claude Pro Subscription' (0% used), the labels ClaudeProvider.formatClaudeSubscriptionAuthLabel emits for native auth. One row uses a five_hour session window and the other a seven_day weekly window. vp test run src/usageLimits.test.ts -t 'weights pooled' from packages/shared: the Codex row passes, and both Claude rows fail with 'expected 50 to be 17'. The pool shows 50% remaining and a 50% reset contribution from Max, where the 5:1 weighting gives 17% and 83%.

    Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.

  2. JonasW04 commented on Nov 22, 2026

    @JonasW04
    Author

    Reproduced on T3 Code 0.1.12-nightly.20261122.5085 (macOS desktop) with two native Claude accounts.

    "Claude" is the Max account, with 5% of its weekly allowance left. "Claude 2" is the Pro account, with 100% left. The pooled Weekly bar shows 53% left, which is the plain average of the two. With the 5:1 Max:Pro weight T3 already uses for the session window, the pool would show about 21% left (79% used).

    claude-weekly
  3. JonasW04 commented on Nov 22, 2026

    @JonasW04
    Author

    The comment above already reproduces this: both Claude rows in the weights pooled test fail with expected 50 to be 17. My comment above has the live repro the bot was missing (version, both accounts, and a screenshot of the pooled weekly bar at 53% left). Could this be reopened?

  4. joseph-lozano commented on Nov 25, 2026

    @joseph-lozano

    Reproduced on T3 Code 0.1.12 (stable, desktop app, macOS arm64) with four native Claude accounts on four different plans. Please reopen. This repro adds Ultra and Team, and it shows that open PR #37784 would still leave most of this pool weighted equally.

    Setup

    There are four claudeAgent instances. Each is a native Claude Code 2.1.332 login with its own home directory, with no hub and no custom base URL. T3's provider status cache stores these auth labels, so on this path T3 already identifies each plan correctly, Ultra included:

    Plan label T3 stores Session left Weekly left Weekly · Fable left
    Claude Max Subscription 56% 94% 100%
    Claude Team Subscription 97% 97% (no window)
    Claude Ultra Subscription (no five_hour window) 12% 6%
    Claude Pro Subscription 100% 100% (no window)

    What Usage → Limits shows, compared with plan-weighted values

    Pool T3 shows Plan-weighted Weights
    Weekly 76% left, next refill +22%, under pace ~46% left, refill +52%, ahead of pace Ultra 10, Max 5, Pro 1, Team 1
    Session 84% left, refill +15% ~68% left, refill +31% (69% with Team at 1.25) Max 5, Pro 1, Team 1
    Weekly · Fable 53% left, refill +47% ~37% left, refill +63% Max 5, Ultra 10 (if those multiples also apply to Fable)

    Each headline is the plain mean of the accounts in that row. For example, weekly is (94 + 97 + 12 + 100) / 4 = 76. I recomputed pace with paceOfShares and the cached reset times at the moment of the screenshot. With weights, the weekly pool moves from under pace to ahead of pace, because the account that holds most of the capacity (Ultra) is 88% spent. The pooled bar currently overstates the weekly capacity left by about 30 points.

    Cause (same code in v0.1.12 and main @ b76d0f0)

    planCapacity / poolWindows in packages/shared/src/usageLimits.ts:

    1. Claude gets plan weights only when kind === "session". Weekly and Weekly · Fable always use equal weights.
    2. CLAUDE_SESSION_CAPACITY = { Pro: 1, Max: 5, Ultra: 20 } is looked up by account.plan, which holds the auth label (Claude Max Subscription, and so on). The lookup never matches, so the session row also uses equal weights (as in [Bug]: Native Claude plans are weighted equally in pooled session limits #36555).
    3. Ultra is weighted 20. Anthropic's Ultra page now gives 10x Pro weekly, and verified Ultra accounts have no 5-hour limit.
    4. If any member's capacity is unknown, poolWindows uses equal weights for the whole row. Team isn't in the table, so every row that includes a Team seat stays equally weighted even after the keys are fixed.

    Gap in PR #37784

    The PR keys CLAUDE_PLAN_CAPACITY by Claude Pro/Max/Ultra Subscription at 1/5/10 for session and weekly windows, which fixes points 1 to 3 for this install. It has no Claude Team Subscription (or Enterprise) entry, and the fallback in point 4 is unchanged. With this setup, the weekly and session pools would still show 76% and 84%, and only the Fable row (Max + Ultra) would change. The PR currently has merge conflicts.

    Suggestions

    • Give Team a weight. Anthropic lists Team Standard at 1.25x Pro per session and Premium at 6.25x, with no weekly multiple published. Alternatively, count an unknown plan as 1 instead of dropping weighting for the whole row (as Pooled usage limits average accounts equally instead of by plan capacity #18995 proposed).
    • When a row can't be weighted by plan, say so in the UI.
    • A verified Ultra account reports no five_hour window, so the Session headline leaves it out without saying so. Label that account as having no 5-hour limit, and handle unverified Ultra (which still has a 5-hour limit of unpublished size) separately.
    • Confirm Fable's multiples before weighting Fable.
    • Test with the real labels above (from Claude Code 2.1.332), not bare Pro/Max/Ultra.

    Plan sources (checked 2026-11-25):

    Workaround: read each account's own bar instead of the pooled headline.

    Related: #18995, #13110, #36555, #27750, PR #37784.

    Triaged with t3 triage (CLI 0.1.12) by Claude Opus 5.5 (claude-opus-5-5) in Claude Code.

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