Repository navigation
fix(ui): stroke new-session target icons instead of black fills - #106193
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 5:09 AM ET / 09:09 UTC. Summary PR surface: Source +4. Total +4 across 1 file. Reproducibility: yes. The supplied before-dark screenshot shows the black-fill symptom, and the dark/light after screenshots from the same mock Control UI /new flow show the corrected outlines. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Refresh the branch onto current main and land the shared consumer-side SVG rule after the Control UI owner confirms the supplied dark/light screenshots still match the merge result. Do we have a high-confidence way to reproduce the issue? Yes. The supplied before-dark screenshot shows the black-fill symptom, and the dark/light after screenshots from the same mock Control UI /new flow show the corrected outlines. Is this the best way to solve the issue? Yes. Applying the established stroke contract at the three new-session icon consumer containers is narrower and safer than changing shared icon templates, which could alter unrelated consumers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 22daf8f23424. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +4. Total +4 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Merged via squash.
|
What Problem This Solves
The start-screen ("New session") target row chips — agent, workspace folder, and gateway/device — rendered their Lucide icons as solid black blobs.
ui/src/styles/new-session.csssized the SVGs but never setstroke: currentColor; fill: none, so the path-only icon templates fell back to the SVG default (black fill, no stroke). In dark mode the icons were nearly invisible; in light mode they read as filled blobs instead of the outline icon style used everywhere else in the Control UI.Why This Change Was Made
The icon templates in
ui/src/components/icons.tscarry bare paths and rely on each consumer to apply the shared stroke rules (see.session-menu__icon svginui/src/styles/layout.css). The new-session page missed that rule for its three icon containers.User Impact
Agent/workspace/gateway chips on the start screen, plus the folder-browser icons (back arrow, close, device and folder rows), now render as proper outline icons that follow
currentColor— muted by default, text color on hover — in both light and dark themes.Before (dark):
After (dark):
After (light):
Evidence
.new-session-page__trigger-chevron svg,.new-session-page__target-icon svg, and.new-session-page__browser-nav svginto one rule withstroke: currentColor; fill: none; stroke-width: 1.7px(matching the shared.session-menu__*icon rules); the chevron keeps its 12px override.pnpm dev:ui:mock) on/newin dark and light color schemes: trigger chips, the "Where" menu, and the folder browser all render outline icons (screenshots above).git diff --checkclean; autoreview (Codexgpt-5.6-sol) clean: "no accepted/actionable findings".