Repository navigation
fix(ui): identity menu submenus flicker closed in the macOS app - #185579
Conversation
The identity menu rebuilt its separator and Gateway title entries as new DOM nodes on every rebuild of its entry list. The Gateway switcher and Help submenus each sit between two of those nodes, so Solid's keyed reconciler detached and re-inserted the submenu on every rebuild. Re-inserting a node silently hides an open native popover, so the submenu flickered closed while the menu still considered it open. Build the content entries once per menu, as the session menu already does, and record the trap in the Solid overlays guide. Release-note context: Control UI identity menu submenus (Gateway switcher, Help) no longer flicker closed in the macOS app.
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR reuses identity-menu separators and its Gateway heading across rebuilds so open Gateway and Help submenus remain visible. Example: Open the Team Gateway submenu, then change the menu's device-pairing availability.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open for landing: it fixes a concrete submenu dismissal bug still present on current main, with no actionable findings and passing current-head CI gates. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI identity-menu renderer turns live profile, Gateway, connection, and appearance inputs into entries for the shared Solid Menu; selections flow through existing navigation handlers and the native Gateway bridge. flowchart LR
A[Live sidebar inputs] --> B[Identity menu entries]
C[Stable headings and separators] --> B
B --> D[Shared Solid Menu]
D --> E[Native submenu popovers]
E --> F[Existing action handlers]
Technical reviewBest possible solution: Land the focused producer-side repair that preserves submenu DOM identity while retaining live menu bindings and the existing shared overlay owner. Do we have a high-confidence way to reproduce the issue? Current-main source recreates content nodes around keyed submenu branches on menu-input changes; the supplied before capture and reported base-failing regression establish a concrete reproduction, although this read-only review ran no target code. Is this the best way to solve the issue? The patch repairs node identity at its producer using the existing session-menu pattern, preserves reactive entries and native actions, and adds one distinct regression without unnecessary machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9b7db694b593. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -13, Tests +22, Docs +1. Total +10 across 3 files. Added test files: 0. View PR surface stats
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 27, 2026, 2:51 AM ET / 06:51 UTC. |
|
Merged via squash.
|
…185579) The identity menu rebuilt its separator and Gateway title entries as new DOM nodes on every rebuild of its entry list. The Gateway switcher and Help submenus each sit between two of those nodes, so Solid's keyed reconciler detached and re-inserted the submenu on every rebuild. Re-inserting a node silently hides an open native popover, so the submenu flickered closed while the menu still considered it open. Build the content entries once per menu, as the session menu already does, and record the trap in the Solid overlays guide. Release-note context: Control UI identity menu submenus (Gateway switcher, Help) no longer flicker closed in the macOS app.
What Problem This Solves
Fixes: in the macOS app, the identity menu's Gateway switcher submenu (and the Help submenu) flickers and disappears before you can pick anything.
User Impact
User impact: hovering Gateway or Help in the identity menu opens a submenu that stays open while you move into it and choose an entry.
Why This Change Was Made
The identity menu rebuilds its entry list whenever any input it reads changes. That happens repeatedly while you move the pointer, and constantly on a busy Gateway. Each rebuild created brand-new separator and section-title nodes. Both submenus sit between two of those nodes, so Solid's keyed list reconciler detached and re-inserted the submenu's DOM on every rebuild. Re-inserting a node silently hides an open native popover (no toggle event), so the submenu vanished while the menu still believed it was open. The Gateway submenu only exists in the Mac app, which is why it showed up there first.
The separators and title are now created once per menu and reused across rebuilds, the same pattern the session menu already uses for its dividers. Rebuilds no longer move the open submenu. The Solid overlays guide now records this trap.
Evidence
keeps an open gateway submenu in place while the identity menu rebuilds(app-sidebar-native-gateways.test.ts): opens the Gateway submenu, forces a rebuild, and asserts the open branch is never detached. Red on the base (the open branch was among 14 detached nodes), green with the fix. The full file passes 6/6.openwhile its popover was no longer showing, and a DOM hook caughtreconcileArraysreplacing the open submenu's wrapper on each rebuild. Changing one menu input while the submenu is open (the capture below) reproduces this deterministically:phase=open,:popover-openfalse.app-sidebar-identity-keyboard.browser.test.ts("traverses the actual item order…") fails on the base as well as this head on a heavily loaded host (base 4/5 failing, head 4/4). In both, Profile has focus after Enter but the menu machine holds no highlight, so the first ArrowDown stays on Profile. That's a focus-adoption timing race in the shared menu machine, left for a follow-up.Gap: verified in Playwright WebKit with the native shim, not in the signed Mac app itself.
Release-note context: Control UI identity menu submenus (Gateway switcher, Help) no longer flicker closed in the macOS app.