GeezerVison is showing github.com — feat(web): option to show Fast mode as a lightning icon by kharitonov-egor · Pull Request #21089 · pingdotgg/t3code
Conversation
Problem
Since #16069 the composer's reasoning button spells out speed as text, for example "High Fast" or "High Ultrafast". Before that it showed a lightning bolt, plus a double bolt for Codex Ultrafast (#14479). A reply on #16069 asked why the bolt went away, and there is currently no way to get it back.
Change
Settings > Appearance > Interface gets a Fast mode indicator select.
- Text (default) is the current behavior, unchanged. Speed is appended to the reasoning label.
- Lightning icon puts the bolt where the brain icon sits when Fast is on, and drops the word from the label. Codex Ultrafast gets the double bolt. If speed is the only trait, the label stays as text so the button never shows a bare icon. The accessible name and tooltip read "Fast mode on" or "Ultrafast mode on", as they did before fix(web): show fast mode beside reasoning as text #16069.
The icon is TraitsSpeedIcon, the component the subagent hover cards already use, so the bolt looks the same in both places. buildTraitsTriggerDisplay now takes its speed state from getTraitsSpeedDisplay instead of keeping a second copy of that detection logic. Claude, Cursor and OpenCode (fastMode) and Codex (serviceTier) are covered by that shared function. Other providers have no speed option, so nothing changes for them.
The value is a client setting with default "text", like the other Appearance options. It's included in Restore defaults and in settings search. ChatComposer and the four settings-page traits pickers pass it to TraitsPicker as a prop. TraitsPicker doesn't read the settings store itself, because importing useSettings there creates an import cycle (lib/utils → composerDraftStore → modelSelection → composerProviderState → TraitsPicker → useSettings → ui/toast → lib/utils) that broke settingsSearch.test.ts during development.
The subagent hover cards are not touched. They already show the bolt on main, and tying them to a setting that defaults to text would change their current default. Mobile is also unchanged, because the native composer has no speed indicator.
Scope and approval
No prior discussion. I think this fits the "focused configuration option for an established capability" route in CONTRIBUTING.md. The capability is the existing speed indicator. TraitsSpeed already renders ZapIcon and UltrafastIcon in the subagent hover cards, and the composer button rendered the same bolt before #16069. The option only picks between those two existing presentations for one button. The default stays text, so nobody sees a change unless they opt in. It adds no workflow, provider behavior, or server change.
Verification
I didn't run a dev server. The screenshots come from Vitest browser mode (Playwright Chromium) rendering the real TraitsPicker with the app's CSS, using a throwaway test that isn't part of this PR. The before shot renders main's TraitsPicker.tsx with the same fixtures. Each row is one model state: Claude with Fast off and on, then Codex on the Fast and Ultrafast tiers. The narrow test viewport is why the Codex label truncates.
Before, main:

After, Text (default). Identical to main:

After, Lightning icon:

The new row in Settings > Appearance, set to Lightning icon:

Tests:
vp test run --project unit src/components/chat/TraitsPicker.test.ts src/components/settings/settingsSearch.test.ts src/components/chat/composerProviderState.test.tsx in apps/web: 3 files, 133 passed. The existing label tests now run with the indicator set to text and also assert that no icon is returned. New cases cover the icon mode. They check one bolt for Fast, two for Ultrafast, no bolt for Standard, Flex or Fast off, and the text fallback when speed is the only trait.
vp test run --project browser src/components/settings/SettingsPanels.restore.browser.test.tsx in apps/web: 5 passed, including a new case where Restore defaults lists and resets the indicator.
vp test run src/settings.test.ts in packages/contracts: 172 passed, including the default and the round-trip and reject cases for the new field.
tsc-rs --noEmit in apps/web and packages/contracts: exit 0.
vp lint and vp fmt --check on the touched files: clean.
Not checked:
- I didn't run the app, so I haven't seen the bolt in a live composer, in the collapsed composer (
xs size), or in the desktop shell. The xs size goes through the same TraitsSpeedIcon path and renders the bolt in the current text color, as it did before fix(web): show fast mode beside reasoning as text #16069.
- I only ran this on Windows.
Written with Claude Opus 5.5 via Claude Code in T3 Code.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Settings > Appearance > Fast mode indicator chooses how the composer's
reasoning button shows Fast and Ultrafast: as text beside the reasoning
label (the default, unchanged) or as the lightning bolt the button used
before pingdotgg#16069, with the double bolt for Codex Ultrafast.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Needs Human Approval
Macroscope's review found this PR requires human approval — This PR adds a persistent Appearance preference, a new product default, and cross-cutting composer rendering for Fast and Ultrafast indicators. The existing text behavior remains the default and tests cover the new paths, but the default-settings change and user-facing capability warrant human review.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 18, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Use the following commands to manage reviews:
@coderabbitai resume to resume automatic reviews.
@coderabbitai review to trigger a single review.
Use the checkboxes below for quick actions:
- ▶️ Resume reviews
- 🔍 Trigger review
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
65699259-2e5f-4f51-bdbf-2ded1ee79d89
📥 Commits
-
Reviewing files that changed from the base of the PR and between 971b6ae and a88f29f.
📒 Files selected for processing: 8
-
apps/web/src/components/chat/ChatComposer.tsx
apps/web/src/components/chat/TraitsPicker.test.ts
apps/web/src/components/chat/TraitsPicker.tsx
apps/web/src/components/settings/ProjectDefaultsSettings.tsx
apps/web/src/components/settings/SettingsPanels.tsx
apps/web/src/components/settings/settingsSearch.ts
packages/contracts/src/settings.test.ts
packages/contracts/src/settings.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
-
Adds a Fast mode indicator setting with text and icon options. Traits pickers receive the selected setting and display speed as text or an icon. The setting defaults to text and supports patch decoding and restore-defaults handling.
Changes: Fast mode indicator
| Layer / File(s) |
Summary |
Setting contract and controls packages/contracts/src/settings.ts, packages/contracts/src/settings.test.ts, apps/web/src/components/settings/SettingsPanels.tsx, apps/web/src/components/settings/SettingsPanels.restore.browser.test.tsx, apps/web/src/components/settings/settingsSearch.ts |
Adds the FastModeIndicator setting with a text default and patch support. Adds the Appearance selector, search entry, restore handling, and tests. |
Speed label and icon rendering apps/web/src/components/chat/TraitsSpeed.tsx, apps/web/src/components/chat/TraitsPicker.tsx, apps/web/src/components/chat/TraitsPicker.test.ts |
TraitsPicker uses shared speed-display helpers to show speed as text or an icon. Tests cover speed tiers, indicator modes, and fallback cases. |
Setting propagation to traits pickers apps/web/src/components/chat/ChatComposer.tsx, apps/web/src/components/chat/composerProviderState.tsx, apps/web/src/components/settings/ProjectDefaultsSettings.tsx, apps/web/src/components/settings/SettingsPanels.tsx, apps/web/src/components/settings/SourceControlWritingSettings.tsx |
Composer and settings entry points pass the configured indicator to their traits pickers. Composer provider state forwards the value to the rendered traits control. |
Priority: ⚪ Pending latest changes
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Feature
Suggested reviewers: maria-rcks, bil0000, juliusmarminge
Merge Risk: ⚪ Minimal · up to a88f2
-
The setting and picker changes have no identified merge-blocking issue. Normal checks can proceed.
Security architecture risk: ⚪ Minimal · up to a88f2
-
The preference changes speed presentation without changing provider options or granting additional authority. Valid values, backward-compatible defaults, and reset behavior follow the existing settings mechanisms. No introduced or worsened material security risk was identified.
Retained concerns
No architecture-level concerns identified.
Security review details
-
Security Blast Radius
- inferred — In the inspected paths, control of this preference affects the client’s speed representation, not provider service-tier selection, server settings, or another tenant’s authority.
Trust Boundaries and Controls
- observed — The Appearance selector checks the two permitted values before updating settings. Composer rendering still requires an existing target and eligible traits, while the picker retains its disabled-state checks. The new presentation prop does not bypass those checks.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly and concisely describes the main change: adding an option to display Fast mode as a lightning icon. |
| Description check |
 |
The description covers the problem, implementation, scope rationale, screenshots, focused verification results, limitations, and agent attribution. It explains why no prior approval link is required f… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Description check
-
Explanation
The description covers the problem, implementation, scope rationale, screenshots, focused verification results, limitations, and agent attribution. It explains why no prior approval link is required for this focused configuration option.
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:L
100-499 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|