[Bug]: Exhausted Fable weekly limit marks all Claude models as out of usage #32015
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#
- 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%.
- Make a Claude model that is not Fable, such as
claude-opus-5-5, the default for new threads, with a fallback provider configured. - 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.
Related#
#30722 confirmed that the Weekly · Fable row belongs under Claude. This issue is about that row blocking the other Claude models.
na-zar(GitHub profile, opens in a new tab) linked this to #32016
tanstack-source added labelsbug
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
mainas of 2026-11-25:exhaustedUsageWindowstill has noclaudeAgentcase.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:00ZDefault 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 onlyUsageLimitSources.tsuses it. Adding aclaudeAgentcase toexhaustedUsageWindowthat filters through equivalent logic (or moving that helper intopackages/shared) looks like the fix.Reported via
t3 triageby Claude Code (Claude Opus 5.5).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. Withseven_dayat 68% andseven_day_fableat 100%,generateBranchNameandgenerateThreadTitlewent to Codexgpt-6-luna(TextGeneration.generate→exhaustedUsageWindow). Codex was also out of quota, so the branch kept its temporaryt3/<hash>name.The fallback leaves no trace: the
TextGeneration.generatespan 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.
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_hourat 0.51 andseven_dayat 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:
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'srate_limit_eventfrom the same second marksseven_day_overage_includedasrejected(utilization 1), and that event has no model either. If the out-of-usage banner or the fallback reads these records, makingexhaustedUsageWindowmodel-aware may not be enough. The turn-failure path would also need to keep the model from the 429.Workaround I'm using: remove
fallbackModelSelectionand pick the API instance by hand when I want it.