Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Exhausted Fable weekly limit marks all Claude models as out of usage #32015

Openna-zar(GitHub profile, opens in a new tab) opened this issue 3 comments

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. Use a Claude subscription where the model-scoped weekly bucket for Fable is used up. The Limits tab shows Weekly · Fable at 100%, while Session and Weekly are below 100%.
  2. Make a Claude model that is not Fable, such as claude-opus-5-5, the default for new threads, with a fallback provider configured.
  3. Start a new thread.

Expected behavior

Only Fable is treated as out of usage. Opus 5.5 is still within its limits, so it stays usable and new threads keep using it.

Actual behavior

T3 Code treats the whole Claude provider as out of usage. New-thread selection falls back to the other provider, and the server's text-generation model selection skips Claude too, even though Opus 5.5 still works.

Cause: exhaustedUsageWindow in packages/shared/src/usageLimits.ts has model-aware cases for cursor, antigravity and opencode. claudeAgent falls through to default: return exhausted[0], so any Claude window at 100% blocks every Claude model. That includes the model-scoped seven_day_<model> windows from claudeUsageResponseToLimits (apps/server/src/provider/claudeUsageLimits.ts), such as seven_day_fable.

Callers affected: resolveNewThreadModelSelection (ChatView, DraftHeroHeadline, useHandleNewThread, MCP project handlers) and TextGeneration.ts.

Impact

Major degradation or frequent failure

Version or commit

main @ 6577c6b6

Environment

macOS, T3 Code with the Claude Agent provider, Claude subscription with a model-scoped Fable weekly limit

Workaround

Pick the Claude model explicitly for each thread. An explicit selection skips the fallback.

#30722 confirmed that the Weekly · Fable row belongs under Claude. This issue is about that row blocking the other Claude models.

  1. tanstack-source added labelsbug

  2. Still happening on desktop 0.1.11 (Linux). Two details from my logs that may help the fix:

    1. Picking the model explicitly doesn't avoid it for an existing thread. My thread had a Claude instance with Opus 5.5 selected. After a different thread on the same instance hit the Fable weekly limit, this thread showed " is out of usage · resets " and its turns went to my configured fallback (a second Claude instance on an API key). Opus on the first instance was still working: a thread switched back to it ran fine, with five_hour at 0.51 and seven_day at 0.70 when the limit hit.

    2. The limit also comes in through the turn, and the stored record drops the model. The 429 names the model:

    You've hit your Fable limit · resets Nov 25, 3am (America/Los_Angeles). Switch to another model to continue. (error type rate_limit, HTTP 429, model sent to the API: claude-fable-5-2)

    T3 Code stores it as a turn item with failure: { class: "usage_limit", code: "api_error_429", retryable: true, resetAt: "2026-11-25T11:00:00.000Z" } and no model. The SDK's rate_limit_event from the same second marks seven_day_overage_included as rejected (utilization 1), and that event has no model either. If the out-of-usage banner or the fallback reads these records, making exhaustedUsageWindow model-aware may not be enough. The turn-failure path would also need to keep the model from the 429.

    Workaround I'm using: remove fallbackModelSelection and pick the API instance by hand when I want it.

  3. quinnypig(GitHub profile, opens in a new tab)commented

    Confirmed on T3 Code v0.1.12 (desktop app, macOS arm64), across three separate T3 server nodes on the same Claude Team account. Also checked against main as of 2026-11-25: exhaustedUsageWindow still has no claudeAgent case.

    Provider status cache at the time:

    five_hour        Session          12%   resets 2026-11-25T21:00Z
    seven_day        Weekly           76%   resets 2026-11-25T21:00Z
    seven_day_fable  Weekly · Fable  100%   resets 2026-11-25T21:00Z

    Default model: claude-opus-5-5. New threads show "Using GPT-6.1-Sol · Claude is out of usage · resets 1:00 PM", even though only the Fable bucket is exhausted.

    The server already has the right predicate in windowLimitsModel (apps/server/src/provider/claudeUsageLimits.ts), but only UsageLimitSources.ts uses it. Adding a claudeAgent case to exhaustedUsageWindow that filters through equivalent logic (or moving that helper into packages/shared) looks like the fix.

    Reported via t3 triage by Claude Code (Claude Opus 5.5).

    image image
  4. Same root cause also hits text generation, not only chat threads. On 0.1.14-nightly.20261128.5372 (macOS), Source control writer model = claudeAgent / claude-haiku-5-5. With seven_day at 68% and seven_day_fable at 100%, generateBranchName and generateThreadTitle went to Codex gpt-6-luna (TextGeneration.generate → exhaustedUsageWindow). Codex was also out of quota, so the branch kept its temporary t3/<hash> name.

    The fallback leaves no trace: the TextGeneration.generate span has no event for the rejected model or the fallback model. A span event (or a UI note) with the reason and the fallback model would have made this quick to find.

Sign in to join this conversation.