[Bug]: Claude composer shows Fast while requests are served at standard speed, with no notice #17651
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server (the label itself is rendered by apps/web)
Steps to reproduce#
- Sign in to Claude Code with a Claude subscription whose account has usage credits turned off. On subscription plans fast mode is billed from usage credits only, so Claude Code does not apply it for such an account (fast mode requirements).
- In T3 Code, open a thread on Claude with Claude Opus 5.5 and turn on Fast Mode in the model options.
- Send a few prompts.
- Open the session's Claude Code transcript (
~/.claude/projects/<project>/<session>.jsonl) and readmessage.usage.speedon the assistant messages.
Expected behavior#
The composer reflects the fast mode state Claude Code reports for the session. When fast mode is blocked, T3 Code shows that it is not active and why (for example "requires usage credits"), the way /fast does in the Claude Code CLI.
Actual behavior#
The composer keeps showing Extra High Fast for the whole session, and nothing in the thread says fast mode is not in effect. Every request was served at standard speed: 36 of 36 assistant messages in the transcript carry usage.speed: "standard", at roughly 100 output tokens per second end to end.
Diagnosis#
Source read at main @ 5dcb59e.
- The setting is forwarded correctly.
compileClaudeModelSelectionemitssettings.fastMode(claudeModelOptions.ts#L39-L47) andmakeClaudeQueryOptionspasses those settings to the SDK query (ClaudeAdapterV2.ts#L834-L902). This is not the dropped setting from #16755. - Claude Code reports the effective state, and T3 Code does not read it. Since Claude Code v2.1.219 the Agent SDK carries
fast_mode_state("on" | "off" | "cooldown") andfast_mode_disabled_reasonon theinitsystem message, on every result message and onSDKControlInitializeResponse(TypeScript SDK reference). The reason codes cover this case (extra_usage_disabled,free) and the others a user can hit (preference,model_not_allowed,network_error,disabled_by_env,not_first_party,pending,unknown).ClaudeAdapterV2.tshas no occurrence offastat that commit, so the label can only show what was requested. - The capabilities probe already awaits
initializationResult()and uses onlyinit.account(ClaudeProvider.ts#L397-L419). The probe does not opt in to fast mode, so it would reportsdk_opt_in_required; the live session'sinitand result messages are the reliable source. - The effective per-request speed is already parsed for cost accounting (claudeUsage.ts#L83), but it never reaches the composer.
I did not capture the init or result message of this session, so the exact reason code is inferred from the cached account state below, most likely extra_usage_disabled.
A possible fix: keep fast_mode_state and fast_mode_disabled_reason from the session's init and result messages in the thread state, show Fast only while the state is on, and show a distinct state with the reason when it is blocked or in cooldown.
Impact#
Minor bug or occasional failure. It is deterministic for any subscription account without usage credits, and it misleads on both speed and billing: the user believes the thread runs, and is billed, at the fast rate.
Version or commit#
0.0.46-nightly.20261009.2886 (desktop nightly); source read at main @ 5dcb59e
Environment#
macOS 26.7 (arm64), Claude Code 2.1.296 through the Agent SDK (entrypoint: sdk-ts), Claude Opus 5.5 at Extra High effort, Claude Max subscription with usage credits turned off
Logs or stack traces#
# Thread model selection as T3 Code stores it
{"model":"claude-opus-5-5","options":[{"id":"effort","value":"xhigh"},{"id":"fastMode","value":true}]}
# Claude Code transcript: usage of every assistant message (36 of 36)
"service_tier": "standard", "speed": "standard"
# ~/.claude.json, cached account state
oauthAccount.hasExtraUsageEnabled = false
cachedExtraUsageDisabledReason = "org_level_disabled"
Workaround#
Read usage.speed in the Claude Code transcript to see what was actually served. To get fast mode, turn on usage credits in claude.ai under Settings > Usage.
Investigated and written by Claude (Opus 5.5) inside the affected T3 Code session, at the user's request. The measurements come from that session.
Note: drafted with Claude Code on the affected machine, from its local logs.
More data, with a different disabled reason, from the provider event logs on 0.1.2-nightly (macOS 26 arm64, Claude Code 2.1.296 to 2.1.306, Opus 5.5 with Fast Mode on in the composer):
- No fast requests at all: 27,631 usage records across 41 provider sessions. Every one has
usage.speed: "standard"; none has"fast". - Org-level
preference: the CLI reportedfast_mode_state: "off"withfast_mode_disabled_reason: "preference"3,618 times. The CLI debug log showsOrg fast mode: disabled (preference), thenFast mode unavailable: Fast mode is not available in the Agent SDK. Here fast mode is turned off for the account's organization; usage credits are not the cause. - A reason code missing from the list above: the 4 sessions without
fastMode: truein their logged query options reportedfast_mode_disabled_reason: "sdk_opt_in_required". Any mapping should handle this code too. "on"with standard speed: 16 result frames reportedfast_mode_state: "on"while the same frames hadusage.speed: "standard".usage.speedmay be a better signal than the state field for whether Fast was actually applied.
The composer showed Fast the whole time. The proposed fix (read
fast_mode_state/fast_mode_disabled_reasonand show the reason) would cover this case. Forpreference, the notice could say something like "Fast mode is disabled for your organization".- No fast requests at all: 27,631 usage records across 41 provider sessions. Every one has
juliusmarminge added labelsneeds more info
Also worth mentioning: when setting
CLAUDE_CODE_DISABLE_FAST_MODE=1via env variables the t3 code composer still offers enabling fast mode. Same forCLAUDE_CODE_DISABLE_WORKFLOWS=1still offering "Ultracode" reasoning. Afaik these things can also be disabled via settings.json so that needs to be investigated aswell for a proper implementation to handle these variables/settings.juliusmarminge removed labelsneeds more info
tanstack-source added labelsbug
Sign in to join this conversation.
I have a working fix for this and would like to open a PR once the issue is triaged.
What it does
fast_mode_stateandfast_mode_disabled_reasonfrom the SDK'sinitandresultmessages, but only when Fast was requested. It saves the state on the provider thread, the same waygoalis saved, together with the model it was reported for.Checked in a dev build: one Opus 5.5 turn with Fast on, on an account without usage credits. The icon shows when the turn starts, goes away on Opus 4.6, and comes back on Opus 5.5.
Scope decisions, open to change
About 360 changed lines across contracts, the Claude adapter, client-runtime and the composer, with tests.
Would a maintainer triage this? I'm also happy to change the approach, for example to a composer banner instead of the inline icon.