Skip to content

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

Open
otavio wants to merge 1 commit into
pingdotgg:mainfrom
OSSystems:fix/41864-fast-selector-active-state
Open

otavio wants to merge 1 commit into
pingdotgg:mainfrom
OSSystems:fix/41864-fast-selector-active-state

Conversation

@otavio

@otavio otavio commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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

Before After
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.

The selected segment of the composer's speed control and permissions row
used bg-input/72 on a bg-input/40 track. In dark mode the two fills are
nearly the same, so users could not tell which option was active.

Give the selected segment the raised pill of the segmented Toggle
primitive (bg-background with a small shadow, rounded on all sides). In
dark mode, use a foreground tint that stays clearly lighter than the
track on every theme.

Fixes pingdotgg#41864
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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 name Status Explanation
Title check Passed 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 t…
Description check Passed 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 scree…
Linked Issues check Passed 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"), no…
Out of Scope Changes check Passed 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 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 bd3e495 and 598683c.

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.

@juliusmarminge juliusmarminge added takeover:in-progress A takeover lead is working on this PR takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Standard / Fast selector's active state is nearly invisible in dark mode

2 participants