Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Claude composer shows Fast while requests are served at standard speed, with no notice #17651

OpenNachoooLK(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

apps/server (the label itself is rendered by apps/web)

Steps to reproduce

  1. 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).
  2. In T3 Code, open a thread on Claude with Claude Opus 5.5 and turn on Fast Mode in the model options.
  3. Send a few prompts.
  4. Open the session's Claude Code transcript (~/.claude/projects/<project>/<session>.jsonl) and read message.usage.speed on 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. compileClaudeModelSelection emits settings.fastMode (claudeModelOptions.ts#L39-L47) and makeClaudeQueryOptions passes 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") and fast_mode_disabled_reason on the init system message, on every result message and on SDKControlInitializeResponse (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.ts has no occurrence of fast at that commit, so the label can only show what was requested.
  • The capabilities probe already awaits initializationResult() and uses only init.account (ClaudeProvider.ts#L397-L419). The probe does not opt in to fast mode, so it would report sdk_opt_in_required; the live session's init and 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.

  1. I have a working fix for this and would like to open a PR once the issue is triaged.

    What it does

    • The Claude adapter reads fast_mode_state and fast_mode_disabled_reason from the SDK's init and result messages, but only when Fast was requested. It saves the state on the provider thread, the same way goal is saved, together with the model it was reported for.
    • When Fast is selected but Claude Code reports it as off or in cooldown, the composer shows a small red icon next to the traits picker. The popover says why, for example "requires usage credits", and links to claude.ai usage settings.
    • The icon shows only for the provider and model that produced the report. If you switch models, it goes away until the next turn reports again.

    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.

    BeforeAfterPopover
    Composer shows Fast with no noticeRed icon next to the traits pickerPopover explaining Fast mode needs usage credits

    Scope decisions, open to change

    • Only Claude reports this state today. Other providers are unchanged.
    • Mobile doesn't show the icon. I can add it in this PR or a follow-up.
    • The traits label still says "Fast", because that is the user's selection. The icon reports what Claude Code actually applied.

    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.

  2. 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 reported fast_mode_state: "off" with fast_mode_disabled_reason: "preference" 3,618 times. The CLI debug log shows Org fast mode: disabled (preference), then Fast 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: true in their logged query options reported fast_mode_disabled_reason: "sdk_opt_in_required". Any mapping should handle this code too.
    • "on" with standard speed: 16 result frames reported fast_mode_state: "on" while the same frames had usage.speed: "standard". usage.speed may 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_reason and show the reason) would cover this case. For preference, the notice could say something like "Fast mode is disabled for your organization".

  3. juliusmarminge added labelsneeds more info

  4. Also worth mentioning: when setting CLAUDE_CODE_DISABLE_FAST_MODE=1 via env variables the t3 code composer still offers enabling fast mode. Same for CLAUDE_CODE_DISABLE_WORKFLOWS=1 still 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.

  5. juliusmarminge removed labelsneeds more info

  6. tanstack-source added labelsbug

Sign in to join this conversation.