Repository navigation
improve(ui): consistent corner radii across the Control UI - #189695
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 replaces hardcoded Control UI corner radii with existing theme tokens and removes unused CSS selectors. Example: Open Portals in the Absolutely theme.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR is a coherent visual improvement with no concrete introduced defect found; the failing lint check remains unattributed. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI styles combine shared radius tokens, browser corner-shape support, and theme overrides to render panels and controls. flowchart TD
A[Shared radius tokens] --> D[Component styles]
B[Theme overrides] --> D
C[Browser corner support] --> D
D --> E[Panels and controls]
E --> F[Rendered Control UI]
Technical reviewBest possible solution: Retain the existing radius owners and this focused token cutover, then resolve the lint failure according to its actual cause. Do we have a high-confidence way to reproduce the issue? Current-main CSS directly shows the hardcoded radii, and inspected before/after screenshots demonstrate the visible inconsistency on Models and Portals; no target code was executed during review. Is this the best way to solve the issue? Reusing existing radius and menu tokens is the smallest complete approach, and the removed selectors have no surviving source references. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 27b1717849b0. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -90. Total -90 across 68 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 31, 2026, 3:32 PM ET / 19:32 UTC. |
e6bb958 to
c3e12d9
Compare
|
Merged via squash auto-merge.
|
What Problem This Solves
Corner radii had drifted across the Control UI: about 170 declarations hardcoded values from 6 to 24 px instead of using the radius scale. Containers of the same kind differed (10, 14 and 16 px page panels), hardcoded values ignored the theme, so CRT stayed rounded in those places, and one settings group variant was smaller than the others.
User Impact
Surfaces of the same kind now share one corner, slightly more generous on panels, and CRT stays square. No sizes, layout, colors or copy change.
Why This Change Was Made
Hardcoded radii move onto the existing chain, which themes already pin:
--radius-xl--radius-lg--radius-md--radius-smNested menus that overrode the menu radius now use
--menu-radius.Left as they are on purpose:
999pxvalues: already pills.--radius-lgfrom improve(ui): quiet the mobile Details sheet rows and groups #189549.Evidence
Real app through
pnpm dev:ui:mock --fixture session-design, with data at the fixture layer, no DOM insertion and nothing hidden. Details comes from its real toggle and mobile Details from the header. Theme applied by loading the theme stylesheet and setting the root theme attributes. Before and After full frames at 1440x900 and 390x844, both on the same current main.Computed values on the reachable default pages: settings group variant 14 to 17.5 px, Portals panels 10 to 14 px, Activity list 10 to 14 px, Activity images 8 to 10 px, activity pill avatar 7 to 6 px.
Absolutely dark
Absolutely light
CRT stays square
Beacon
Checks
ui:check-performance:base efd616ac8ac57bc28f863ad3a52eb3ec44f18322passes, including both builds. Total CSS is 308,658 B gzip (+107 B against base), below the 309,366 B ceiling; raw CSS is 1,593,741 B, below the 1,599,319 B ceiling.Gaps
Not reached in the fixture, so these have the token change but no screenshot: terminal, desktop and browser panels, link reader, board widgets, logbook, dreams, session diff, permission card, device pairing, onboarding memory import, mobile session actions and subagent lists.