Repository navigation
fix(ui): preserve theme colors in filled actions - #183338
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR preserves selected accent colors in the sidebar and makes composer action icons inherit their button foregrounds. Example: Open Chat with the CRT dark theme.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides a focused visual repair with inspected before/after evidence and no actionable introduced defects found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI theme tokens feed shared sidebar and composer styles, which determine button backgrounds and SVG foregrounds in Chat and New Session. flowchart LR
A[Appearance selection] --> B[Theme tokens]
B --> C[Sidebar rail styles]
B --> D[Shared composer styles]
C --> E[New Session button]
D --> F[Chat action icons]
D --> G[New Session composer]
Technical reviewBest possible solution: Keep foreground ownership on the existing buttons, preserve theme color pairs, and retain focused browser coverage of the CSS cascade. Do we have a high-confidence way to reproduce the issue? Current-main CSS independently transforms the selected rail accent and assigns mobile SVG colors separately from button colors; supplied browser captures corroborate the rail mismatch. Is this the best way to solve the issue? The patch repairs the existing styling owners with less production CSS, and the maintainer-author's explanation resolves the deliberate change from subdued rail colors. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0dd725e074b2. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -9, Tests +236. Total +227 across 5 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 25, 2026, 2:43 AM ET / 06:43 UTC. |
Use each theme's intended foreground for filled session and composer actions.
Summary
Make filled action glyphs inherit the foreground paired with their theme background. New Session and Send share the appropriate roles; Stop retains danger styling. MCP confirmation and Compact use the existing primary pair.
Native-theme visual comparison
Before:
mainat397abd9b15725ce983ea1f36dc1e9bb8244acd18. After: this PR ata7845feab5a4db1817413e72fed8226cfb21bbb0. All 11 built-in themes were captured in dark and light modes with the same synthetic Gateway data and native theme settings. One unmodified source server was used per source tree; no CSS, palette colors, or custom accents were injected. Crops are enlarged 2× with original colors retained.Changed appearance for review
The images below contain only states with changed pixels: 65 control pairs across 22 theme/mode combinations.
Claw
Knot
Dash
Absolutely
Tide
Beacon
Phosphor
CRT
Manuscript
Rose
Miami
Preserved appearance and palette context
Unchanged native states — 89 Before/After pairs
These states have identical pixels at the two source heads and are shown as context.
Claw
Knot
Dash
Absolutely
Tide
Beacon
Phosphor
CRT
Manuscript
Rose
Miami
Current New Session and Send palettes — context
Each row uses two crops from the same After desktop frame. These images document native palette differences between controls.
Validation
Ten focused foreground tests passed after main integration. The native screenshot flow passed all 22 theme/mode cases on each source tree, including simulated Send and Stop requests, without page errors. The fixtures use no live model or operator data. CI on this head reports a timeout while opening an annotation preview at 390px. The focused desktop/mobile annotation cases both passed on replay; no fix is claimed for that timeout. The annotation component, tooltip owners, and test are unchanged from the CI base. All other CI checks passed. Failing CI case.