Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): Standard / Fast selection is easy to see in dark mode #42460

Openotavio(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/42460/headopened View on GitHub

Problem

In the composer's model picker, the selected Standard / Fast segment used bg-input/72 on a bg-input/40 track. In dark mode the two fills are about 8% and 4% white, so users could not tell which speed was active. The Permissions row in the same picker had the same style and the same problem.

Fix

The selected segment now uses the look of the segmented Toggle primitive: bg-background with a small shadow and rounded corners on all sides. The primitive's dark style is the same weak bg-input/72, so in dark mode the selected segment uses bg-foreground/16. This is a theme token, so it stays lighter than the track on custom themes too. The change applies to the speed control (Codex service tiers and Claude's Fast toggle) and to the Permissions row.

Web and desktop share this component. Mobile shows speed as a menu option, so it is not affected. This also covers the rounding change in #29483.

Screenshots

BeforeAfter
Dark
Light

After, dark mode with Fast selected, and the Permissions row:

Verification

vp run typecheck and vp run check:changed pass. Checked in the dev app in light and dark mode with synthetic data.

Fixes #41864

Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.

    1. tanstack-source added labelsbug

    2. Explain Change →

      No actionable comments were generated in the recent review.

      Walkthrough

      The permission radio items and speed selector segments now use uniform corner rounding. Selected items use updated background and shadow styles, including a dark-mode background for permission items.

      Changes: Composer selection styling

      Layer / File(s)Summary
      Selected-state styling
      apps/web/src/components/chat/ComposerFooterControls.tsx, apps/web/src/components/chat/ComposerModelEffort.tsx
      Permission radio items use uniform rounded corners and updated checked backgrounds and shadows. Speed selector segments use updated selected backgrounds and shadows without first/last-child corner rounding.

      Estimated code review effort: 1 (Trivial) | ~5 minutes

      Change: Bug fix · Severity of issue fixed: Low

      Suggested reviewers: maria-rcks, macroscopeapp

      Merge Risk: Minimal · up to 59868

      This change makes the selected Standard/Fast and Permissions states easier to see by adjusting styling only. It carries no apparent behavioral risk and is ready to merge.

      Pre-merge checks: Passed 4

      Check nameStatusExplanation
      Title checkPassedThe title follows conventional commit format and names the main change: the Standard / Fast selection is made easier to see in dark mode. The raw summary and PR objectives confirm the styling change t…
      Description checkPassedThe description follows the template. It has Problem, Fix (Change), Screenshots, and Verification sections, and it links issue #41864. It explains the problem and the fix, shows before and after scree…
      Linked Issues checkPassedIssue #41864 requires a visibly distinct active Standard / Fast segment in dark mode, with a contrasting background or outline and readable labels. The checkmark is given as an example ("such as"), no…
      Out of Scope Changes checkPassedThe issue scope is the speed selector in the shared composer UI. The PR also changes the Permissions row in the same picker and the Ultracode segment in FOOTER_SEGMENT. The PR description discloses th…
      Full details: Title check

      Explanation

      The title follows conventional commit format and names the main change: the Standard / Fast selection is made easier to see in dark mode. The raw summary and PR objectives confirm the styling change to the selected segment and the Permissions row, which matches the title's focus. The title is short and specific.

      Full details: Description check

      Explanation

      The description follows the template. It has Problem, Fix (Change), Screenshots, and Verification sections, and it links issue #41864. It explains the problem and the fix, shows before and after screenshots for light and dark modes, and reports typecheck and check:changed results with the manual dev-app check. The Scope section is only partly met: it links the issue but does not explicitly say why the fix is a bug fix rather than a feature. The template's note about agent model and harness is also present. Overall the description is mostly complete.

      Full details: Linked Issues check

      Explanation

      Issue #41864 requires a visibly distinct active Standard / Fast segment in dark mode, with a contrasting background or outline and readable labels. The checkmark is given as an example ("such as"), not a requirement. Per the whole-PR summary, ComposerModelEffort.tsx (FOOTER_SEGMENT) now styles selected segments with bg-background, a shadow, and rounded corners. ComposerFooterControls.tsx (ComposerPermissionsSection) makes the same change for checked permission items. The PR description states that the dark-mode selected fill is bg-foreground/16, a theme token that differs from the bg-input/40 track. The raw summary says only "a dark-mode background", so the exact dark token rests on the PR description. The repository diff could not be read (changed blobs missing from the checkout), so this verdict relies on the supplied summary and PR description. No automated test is required by the issue. Visual results were reported in screenshots and were not independently verified.

      Full details: Out of Scope Changes check

      Explanation

      The issue scope is the speed selector in the shared composer UI. The PR also changes the Permissions row in the same picker and the Ultracode segment in FOOTER_SEGMENT. The PR description discloses the Permissions row change and the PR objectives describe it as in scope. The Ultracode segment change is not named in the PR description. It uses the same segment styling, so it is a closely related styling change and not a demonstrated unrelated change. The PR also states it covers the rounding change in #29483. The repository diff could not be read, so these conclusions rely on the summary and PR description.

      Finishing Touches

      Generate unit tests (beta)

      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Recent review info

      Run configuration

      Commits

      Reviewing files that changed from the base of the PR and between bd3e495b5fc8552a58b255444cac4f4d86af157c and 598683cfc7ffcb1809b954b0b83c98a6820133ec.

      Files selected for processing: 2

      • apps/web/src/components/chat/ComposerFooterControls.tsx
      • apps/web/src/components/chat/ComposerModelEffort.tsx

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

    3. juliusmarminge added labelstakeover:in-progress

    4. juliusmarminge added labelstakeover:blocked

    5. juliusmarminge removed labelstakeover:in-progress

Sign in to join this conversation.