Skip to content

fix(next): import cards never fall back to the system blue for their accent or focus ring - #23993

Merged
teamleaderleo merged 1 commit into
feat-cmux-nextfrom
composer-look-no-response-ring
Oct 22, 2026
Merged

teamleaderleo merged 1 commit into
feat-cmux-nextfrom
composer-look-no-response-ring

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Leo-ask: ask-901f6e99da
Leo-ask: ask-f8d7fe1c14 (the "blue focus ring constantly appearing" part)

Leo saw a blue ring pulse around a response and a blue ring that kept appearing in the agent pane. The response ring itself is already off by default on base: #22678 made an agent chat's pane ring in the notification blue when its turn ends, and #23754 (merged) made that ring opt-in (Debug notifications.attention.agentTurnRing, default false) and a neutral hairline when it is on.

The remaining system blue in this sweep is the import suggestion cards (#22710), shown on Home, New Tab and Settings. Root cause: webviews/src/ui/importCards.css:8 set --import-accent: var(--agent-accent, var(--cmux-accent, AccentColor)). On a page without theme tokens, that fell through to AccentColor, the CSS system blue. The card's progress bar and the focus outline on .import-card-button:focus-visible (line 184) then drew in system blue. The same line kept check-system-blue > this checkout is within its baseline red on feat-cmux-next. The fallback is now the cards' own text ink (--import-text). Themed pages are unchanged.

Changelog

  • Fixed: Import suggestion cards never fall back to the system blue for their progress bar or focus ring.

Test

cd webviews && CMUX_BROWSER_TESTS=1 bun test test/check-system-blue.test.ts test/no-system-blue.test.ts (huge-blue)

  • Base 3c16598: 1 fail, check-system-blue > this checkout is within its baseline (webviews/src/ui/importCards.css: 1 system-accent or blue literals, baseline 0).
  • Head: 13 pass, 0 fail. bun run check passes.

Observed / Not run

  • Observed: a headless Chromium render of an unthemed card. The progress bar and the focused button's ring were blue before and are the text ink after.
  • Not run: the Mac app. The change is to webview CSS only.

No capture: webview-only change; a gallery compare is not useful, because every gallery theme sets the accent tokens and this path is only reached without them.

Agent session: cosmic-gray

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes import suggestion cards drawing blue accents on unthemed pages. The card's accent previously fell back to the CSS system color AccentColor when no page theme tokens were present, so the progress bar and focus ring rendered in system blue; the fallback is now the cards' own text ink. Themed pages are unchanged.

Written for commit 11204bd. Summary will update on new commits.

View guided diff Turn on auto-fix

…lue AccentColor

The import suggestion cards (#22710) took AccentColor, the CSS system blue,
as the last fallback for their accent, so an unthemed page drew a blue
progress bar and a blue focus ring around a focused button. It also kept
check-system-blue's "this checkout is within its baseline" test red on
feat-cmux-next. The fallback is now the cards' own text ink.

Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a16027-99fc-73f0-9482-5a4babfe1b0a&host=cosmic-gray
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review 11204bd: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr23993 -f ref=composer-look-no-response-ring -f platform=macos -f backend_mode=local

Unclear: web / react-apps-check failed: no known signature; failed step: Check webview test shards. This PR merged before its CI finished: fix forward on main.

CI failed on 11204bd6fb (run 39706180474 attempt 1): 1 code, 1 unknown.

Job Verdict Why
web / react-apps-check (1) code a web test failed
web / react-apps-check unknown no known signature; failed step: Check webview test shards

Failures:

  • seen on other PRs agent-pane-jump-latest-motion.test.ts webkit: a reply streaming in during Jump to latest's glide is followed to its latest row: failed (job)
  • seen on other PRs lit-glyph-css.test.ts a lit control's ink is the lit glyph, not the raw accent: failed (job)
Matched log lines
web / react-apps-check (1): (fail) webkit: a reply streaming in during Jump to latest's glide is followed to its latest row [4323.75ms]

Not re-run automatically: web / react-apps-check (1), web / react-apps-check are not machine failures.

Written by scripts/ci/classify_failures.py (ci-failure-attribution.yml); signatures are its SIGNATURES table. A machine verdict is the runner's fault, not this PR's; yours means the failing file is one this PR changes, also red on main that main's latest full suite fails the same way, seen on other PRs that it failed on another pull request's run lately.

red: cmux-next checks (god files, concurrency, crash safety, l10n); no finished base run on 47ae435 to compare; do not merge until green; see lane-rules
red: web / Web status; no finished base run on 47ae435 to compare; do not merge until green; see lane-rules
red: web / react-apps-check; no finished base run on 47ae435 to compare; do not merge until green; see lane-rules
red: web / react-apps-check (1); no finished base run on 47ae435 to compare; do not merge until green; see lane-rules

Tour of 11204bd6fb (run): no media. The tour did not run: only webview code changed (1 path(s)), which the gallery advisory run checks in Linux Chromium on the pull request (its artifact holds any captures); add the media-tour-mac label, then re-add media-tour, to tour it on a Mac.

Gallery before/after for 11204bd: 16 states rendered, 0 images differ, 1509 more touched states not rendered. Images are in the run's artifact, not on this public PR.

gh run download 39706133997 -R manaflow-ai/cmux -n gallery-advisory-23993-11204bd6fb7b4b6f40b2a373386331dcd0bf4eea (then read gallery-review.json)

States
State Theme Status Diff Picked by
ui.import-cards/new-tab Apple System Colors Light unchanged 0% own importCards.css
ui.import-cards/new-tab Apple System Colors unchanged 0% own importCards.css
ui.import-cards/new-tab-request Apple System Colors Light unchanged 0% own importCards.css
ui.import-cards/new-tab-request Apple System Colors unchanged 0% own importCards.css
ui.import-cards/new-tab-running Apple System Colors Light unchanged 0% own importCards.css
ui.import-cards/new-tab-running Apple System Colors unchanged 0% own importCards.css
ui.import-cards/new-tab-dismiss Apple System Colors Light unchanged 0% own importCards.css
ui.import-cards/new-tab-dismiss Apple System Colors unchanged 0% own importCards.css
ui.import-cards/settings Apple System Colors Light unchanged 0% own importCards.css
ui.import-cards/settings Apple System Colors unchanged 0% own importCards.css
ui.import-cards/settings-empty Apple System Colors Light unchanged 0% own importCards.css
ui.import-cards/settings-empty Apple System Colors unchanged 0% own importCards.css
agent-pane.chat-width/standard Apple System Colors Light unchanged 0% imports importCards.css (3 hops)
agent-pane.chat-width/standard Apple System Colors unchanged 0% imports importCards.css (3 hops)
agent-pane.chat-width/wide Apple System Colors Light unchanged 0% imports importCards.css (3 hops)
agent-pane.chat-width/wide Apple System Colors unchanged 0% imports importCards.css (3 hops)
agent-pane.chat-width/wide-blocks Apple System Colors Light unchanged 0% imports importCards.css (3 hops)
agent-pane.chat-width/wide-blocks Apple System Colors unchanged 0% imports importCards.css (3 hops)
agent-pane.composer-floats/scrolled-to-end Apple System Colors Light unchanged 0% imports importCards.css (3 hops)
agent-pane.composer-floats/scrolled-to-end Apple System Colors unchanged 0% imports importCards.css (3 hops)
agent-pane.composer-floats/composer-grown Apple System Colors Light unchanged 0% imports importCards.css (3 hops)
agent-pane.composer-floats/composer-grown Apple System Colors unchanged 0% imports importCards.css (3 hops)
agent-pane.docked-chat/new-chat Apple System Colors Light unchanged 0% imports importCards.css (3 hops)
agent-pane.docked-chat/new-chat Apple System Colors unchanged 0% imports importCards.css (3 hops)
agent-pane.docked-chat/after-turn Apple System Colors Light unchanged 0% imports importCards.css (3 hops)
agent-pane.docked-chat/after-turn Apple System Colors unchanged 0% imports importCards.css (3 hops)
agent-pane.docked-chat/working Apple System Colors Light unchanged 0% imports importCards.css (3 hops)
agent-pane.docked-chat/working Apple System Colors unchanged 0% imports importCards.css (3 hops)
agent-pane.docked-chat/typing-in-dock Apple System Colors Light unchanged 0% imports importCards.css (3 hops)
agent-pane.docked-chat/typing-in-dock Apple System Colors unchanged 0% imports importCards.css (3 hops)
agent-pane.docked-chat/long-title Apple System Colors Light unchanged 0% imports importCards.css (3 hops)
agent-pane.docked-chat/long-title Apple System Colors unchanged 0% imports importCards.css (3 hops)

Pick other states with a Gallery: entry.id, entry.id/variant line in the PR body.

@teamleaderleo teamleaderleo added the risk:normal Risk tier (docs/ci/risk-tiers.md) label Oct 22, 2026
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Owned by composer-look on cosmic-gray · session

@blacksmith-sh

blacksmith-sh Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Found 9 test failures on Blacksmith runners:

Failures

Test View Logs
---/--- View Logs
---/--- View Logs
nightly cmux-tui resolve/nightly cmux-tui resolve View Logs
test/agent-pane-jump-latest-motion.test.ts/agent-pane-jump-latest-motion.test View Logs
test/agent-pane-jump-latest-motion.test.ts/agent-pane-jump-latest-motion.test View Logs
test/lit-glyph-css.test.ts/lit-glyph-css.test View Logs
test/lit-glyph-css.test.ts/lit-glyph-css.test View Logs
test/lit-glyph-css.test.ts/lit-glyph-css.test View Logs
test_the_repository_highlights_validate (main.DigestTests.test_the_repository_highl
ights_validate)/
test_the_repository_highlights_validate (main.DigestTests.test_the_repository_highl
ights_validate)
View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (independent subagent, correctness first): SHIP at 11204bd

  • webviews/src/ui/importCards.css:9 now falls back to the cards' text ink (--import-text) instead of the CSS system color AccentColor when a page has no theme tokens. This is the only file changed (+2/-1).
  • Themed pages are unchanged. On New Tab, --agent-accent is already --agent-text. Settings takes its focus ring from --cmux-focus-ring-color.
  • On unthemed pages (the gallery), the progress fill and the focus ring are ink, and both stay visible. --import-accent is never a fill behind text.
  • check-system-blue: ok (10 left in the baseline). The baseline file and the script are unchanged. check-system-blue.test.ts: 5/5 pass.
  • cmux-ci compile-check --app passed at this head (job 710bc5f9202a07b453523dfa).
  • None of the CI reds come from this PR's files. lit-glyph-css flags composerLocation.css, a base red from cmux NEXT composer: Codex keeps its fast-mode bolt left of the mic; Claude's Fast mode stays in the model menu #23742, and a fix is in flight. The jump-latest webkit glide and the gallery health states are also outside this PR.

@teamleaderleo
teamleaderleo merged commit 131109d into feat-cmux-next Oct 22, 2026
@teamleaderleo
teamleaderleo deleted the composer-look-no-response-ring branch October 22, 2026 02:16
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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

Labels

risk:normal Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant