Repository navigation
improve(ui): unify transient surface elevation - #125065
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 19, 2026, 10:31 AM ET / 14:31 UTC. ClawSweeper reviewWhat this changesThis PR centralizes Control UI border and shadow tokens for transient menus, popovers, dropdowns, listboxes, and terminal menus. Merge readiness⛔ Blocked by patch quality or review findings - 4 items remain Keep open: the prior scope blocker remains. The new global overlay tokens also restyle existing tooltips, although this PR explicitly excludes tooltip behavior, and the new E2E test does not cover that effect. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherControl UI theme tokens feed both custom CSS surfaces and Web Awesome shadow-DOM controls. Opening a menu, popover, select, or tooltip resolves these tokens into the visible border and elevation treatment. flowchart LR
A[Theme selection] --> B[Shared overlay tokens]
B --> C[Custom surface styles]
B --> D[Web Awesome controls]
C --> E[Menus and popovers]
D --> F[Dropdowns, selects, tooltips]
E --> G[Control UI users]
F --> G
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +18, Tests +117. Total +135 across 16 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Either restore the tooltip-specific border and shadow fallbacks, or explicitly include tooltip restyling in scope and prove it in the browser. Do we have a high-confidence way to reproduce the issue? Yes, from source: an existing tooltip resolves its fallback through the new global overlay tokens, while the added E2E covers only a menu and listbox. Is this the best way to solve the issue? No. The shared-token approach is suitable for the named surfaces, but it must preserve tooltip defaults or deliberately include and prove the tooltip change. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 16d1e486e015. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles) |
Visual UI proofRendered from exact head
Exact-head test note: all six checked-in |
# Conflicts: # ui/src/styles/settings.css
# Conflicts: # packages/gateway-protocol/src/index.ts
|
Merged via squash.
|
* refactor(ui): unify transient surface tokens * test(ui): reveal transient session menu before click * test(ui): scope transient menu surface to session row * test(ui): target transient session menu by accessible owner * test(ui): capture transient surface proof * fix(ci): register Codex tool coverage * fix(protocol): keep version exports compact

Related: #123655
What Problem This Solves
Menus, popovers, dropdowns, and listboxes currently use competing border and shadow treatments across the Control UI, which makes equivalent transient surfaces appear to sit at different elevations.
This is a standalone extraction of the popover-token thesis from the closed sidebar PR chain. The source work was #123655; no original issue was identified for this thesis.
Why This Change Was Made
This change defines shared transient-surface border and shadow tokens, including theme-family overrides, and applies them across the existing menu, popover, dropdown, listbox, and terminal-menu surfaces. It intentionally excludes tooltip behavior, menu geometry, destructive states, and other theses that were coupled to #123655.
User Impact
Menus, popovers, dropdowns, and listboxes now present a consistent edge and elevation hierarchy across light and dark themes without changing their content or interaction behavior.
Evidence
git diff --checkpassed.