Repository navigation
feat(ui): use native Solid overlays and tabs - #169128
Conversation
Keep one implementation and registered host per migrated component, preserve caller content and imperative methods, and carry the existing application context into bridge roots. Add focused lifecycle, commit-order, event, context-handoff, and retention proof.
Materialize the typed host from declared properties and methods, preserve reactive children, and use plain DOM for renderer-independent tests. Keep the path-exact bridge-test exception limited to Lit imports and templates; its reason requires removal with the bridge at cutover. Negative coverage keeps unlisted paths and other metrics gated.
Merge coordinator-approved solid2/p2-interop at 81095b5. The merge has no conflicts and preserves the reviewed lane tree exactly.
Move menus, popovers, modal dialogs, tooltips, and tabs onto native surfaces with one lifecycle and anchor owner. Preserve the existing dialog and tooltip tags through the Solid bridge, including focus, cancellation, nested teardown, and native-view occlusion contracts. Keep Web Awesome registered for unported consumers. Pin the qualified Zag menu packages to 2.0.0-next.3 without release-age exceptions or overrides. Release-note context: Control UI overlay and tab renderer migration with existing public tags and interaction behavior preserved.
Merge main while retaining the Solid overlay primitives and newer synchronous, inert-aware modal focus return. Preserve original openers across reversed closes, refresh visible tooltip placement, retire replaced native surfaces, and route nested-modal toasts through the active owner.
Keep deferred return targets until restoration or cancellation so removing a closing dialog can hand focus back after background inertness clears. Consolidate the native tabs directive into the existing Lit tab owner, removing the new Lit adapter module.
Restore the legacy action weight through the native tab stylesheet. Canonical parity matches all sixteen desktop/mobile light/dark overlay scenes exactly, without changing comparison budgets.
|
🦞👀 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 changes before merge. What this changesThis PR moves shared Control UI overlays and tabs to native browser surfaces and Solid while preserving existing interactions. Example: Open the New group dialog.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-directed migration open; the previously reported placement-dialog recovery defect remains a merge blocker. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI callers pass content and presentation state into shared overlay and tab owners, which manage browser surfaces, keyboard interaction, focus, and native-view occlusion. flowchart TD
A[Control UI callers] --> B[Registered component bridges]
B --> C[Solid views]
C --> D[Shared overlay lifecycle]
C --> E[Shared tab controller]
D --> F[Native browser surfaces]
D --> G[Focus and native occlusion]
Technical reviewBest possible solution: Retain the shared native migration and release placement-dialog reentrancy on every promise settlement, including loading failure. Do we have a high-confidence way to reproduce the issue? Pinned-head source establishes the rejected-import-to-latched-active path; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The shared native owners follow the recorded migration direction; fixing cleanup in the placement caller preserves that ownership without expanding the modal-host API. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 006e965aa47d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. LabelsLabel changes: No label 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 HistoryReview history (37 earlier review cycles; latest 8 shown)
Reviewed October 12, 2026, 6:46 PM ET / 22:46 UTC (Revision 38). |
What Problem This Solves
Ports the Control UI’s shared menus, popovers, tooltips, dialogs, and tabs to owned native browser surfaces and Solid, preserving existing callers, host tags, keyboard behavior, focus, cancellation, and appearance.
User Impact
Tooltip presentation and modal registration load on interaction; idle tooltip descriptions remain accessible. Pending tooltip loads cancel on Escape without intercepting dialog cancellation. Menu navigation reveals the highlighted item, including repeated End/Home. Programmatic transcript corrections preserve following after command retirement, while reader input still takes over. No configuration migration is required.
Release-note context: migrate shared Control UI overlays and tabs to native browser primitives while preserving keyboard, focus, cancellation, and appearance.
Implementation
One renderer-neutral lifecycle owner admits open/close changes before listeners, inertness, occlusion, or focus effects. It owns opening/open/closing/hidden phases and suppresses superseded completion. Vetoable surfaces use
popover="manual"with lifecycle-owned light dismissal. Native dialogs restore focus synchronously when possible and defer only while inertness is pending; disconnect, removed targets, and newer focus cancel that deferral. Native-view occlusion retains its existing owner.CSS anchors own placement, flip fallbacks, and the 420 px/available-height limits, including a measured caret anchor. The Zag binding preserves sibling switching, roving item focus, Back→Down navigation, and nested teardown.
@zag-js/menu,@zag-js/vanilla, and@zag-js/rect-utilsare pinned exactly to2.0.0-next.3, published September 14, 2026 and cooldown-eligible. The maintainedchakra-ui/zagupstream and these pins passed the requested 183-check qualification spike.The eager tooltip tag retains timing, exclusivity, descriptions, and cancellation policy; its Solid view loads on first activation. First view creation follows the import Promise even when cached, so focus from a Solid effect cannot create a primitive in forbidden scope. Remaining Lit callers use one registered implementation per tag through the bridge. Plugin dialog updates preserve the native shell and policy.
Associated CI repairs preserve TSX import-graph analysis, native timer ownership, atomic mock-response cursors, and explicit storage selection in the isolated MCP evidence reader. The mock server reuses its Vite configuration and synthetic build identity and defers scenario-specific imports. The final scroll repair preserves an actual offset write’s receipt until native delivery; input cancellation and receipt matching remain with the existing owner. No assertion, timeout, performance budget, or gate was relaxed.
Size
Original touched production calibration: 13,262 → 17,213 LOC. Owned primitives replace behavior supplied by a dependency. Later panel-tab CSS consolidation removes 146 production lines; the keyboard-reveal repair adds three. The final offset receipt repair has no net production-line growth. The later Web Awesome exit removes the package and its 3,096-line patch. Remaining consumers still need its registration and theme.
Proof
Candidate:
8d0329c1e7e00163f571b49951db3d92ad9699a8, including merged main7d81b85ccacdf37292cbb7c9c64a2e340cbbb305. Full-lane and subsequent scoped Codex P2 reviews are clean. The final three reviewed files match the committed source byte for byte.pnpm ui:buildpnpm tsgo:uiExact-head
ci:fullrun 38314790101 is green: 98 completed jobs, 81 successful and 17 intentionally skipped.openclaw/ci-gate, all three UI shards, all nine mock-Gateway E2E shards, both real-Gateway shards, browser-extension coverage, build/types/lint, and security-fast pass. The actual collaborator-scroll flow passes in 38.728 s. No inherited CI exception is used.Prior head
b81710ee3d288full CI 38310245282 completed 99 jobs. All three UI shards, all nine mock-Gateway E2E shards, extension, Docker, build/types, and real-Gateway shard 2/2 passed. The earlier avatar and archived-control failures are absent. Real-Gateway shard 1/2 failed the collaborator follow-scroll case (84 px and 224 px versus the 8 px bound), plus its aggregate. The final receipt regression proves the ownership defect through public command retirement and late native delivery; it does not independently establish the precise earlier browser sequence. No inherited exception is claimed.The local real-Gateway replay stopped before tests or runtime preparation: the managed-artifact fence could not verify separation from managed Gateway outputs. The supported isolated runner requires Linux, and local containers are prohibited for this lane. The fence was preserved; the green current-head
ci:fullsupplies that real-entry-point proof.Main’s intentional toast-test deletions are retained alongside the native nested-modal regression. The new scroll regression lives in the existing ownership suite to honor the unchanged 1,000-line limit; no existing cases were removed. Main’s lockfile and dependency updates are retained; branch-specific additions are the approved Zag pins.
Historical local macOS WebKit native Tab-to-button/outside-focus failures and fractional geometry differences remain recorded; the latter reproduce on main at exactly 896.34375 versus 896 px. Hosted Linux counterparts pass on this exact head. Both task-owned Testbox leases are stopped.
All images contain inspected synthetic before/after fixtures.