Repository navigation
fix(ui): own sidebar menu entry render effects - #179282
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 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 memoizes sidebar menu entries so their generated render effects belong to the existing Solid renderer. Example: Open a board’s sidebar context menu and select “Delete board…” repeatedly.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it provides a focused ownership fix still absent from current main, and review found no actionable introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherSidebar renderers turn agent, identity, and plugin navigation data into entries consumed by the shared Menu, which owns keyboard navigation, overlays, and selection dispatch. flowchart LR
A[Sidebar data owners] --> B[Menu renderers]
B --> C[Owned entry memos]
C --> D[SidebarDropdown]
D --> E[Shared Menu]
E --> F[Existing action handlers]
Technical reviewBest possible solution: Keep JSX entry construction in the three existing renderer owners and preserve the shared Menu’s selection and lifecycle contracts. Do we have a high-confidence way to reproduce the issue? Source connects Menu activation to nonmemoized JSX producers on current main, and the author reports the extended navigation test failing on base with NO_OWNER_EFFECT; this review did not execute it. Is this the best way to solve the issue? The patch repairs construction at the existing producers, preserves live props and action checks, and adds one distinct assertion to an existing behavioral test; simplification found no unnecessary machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fc3a42a7eb87. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +5. Total +7 across 4 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 21, 2026, 5:06 AM ET / 09:06 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix(ui): own sidebar menu entry render effects * style(ui): format menu ownership regression assertion
Whole-scope Solid 2 census
Measured the COMP-A production scope at this PR's base and head. Pending loader (#179247), update action (#179241), placement read (#179263), and layout-store work remain separate.
Group-default saving already uses an action and optimistic state. The raw cleanup calls are primitive/computation lifetimes; owner calls mount foreign DOM content. Optional contexts deliberately support standalone consumers. Remaining async/state candidates are tracked by the pending families and final audit; no independent sibling Loading regions need Reveal. The recipe reference is still absent on current main.
What Problem This Solves
Native menu activation reads the items prop outside a reactive owner. Three sidebar producers rebuilt JSX during those reads, allocating effects that could never be disposed. Existing click and keyboard assertions passed despite the runtime's
NO_OWNER_EFFECTdiagnostics.User Impact
Agent, identity, and plugin navigation menus keep their current content, actions, focus, and selectors. Repeated selection no longer creates unowned effects.
Why This Change Was Made
Memoize JSX-producing item arrays at their existing renderer owner and keep menu-position props reactive. The shared Menu API and its event handling stay unchanged. Retiring a menu now retires its generated item content through normal Solid ownership.
Evidence
NO_OWNER_EFFECT; passes with the memoized producerci:fullfor menus and focus; exact-head performance comparisonProduction LOC in the three touched renderers: 660→662 (+2). Test LOC: +5. The two added lines are the memoized plugin items binding; the other menus shrink. No dependency, route, style, tag, or startup import change. No intended visual change, so no screenshots. No remote lease. Separate follow-up work addresses ref/cleanup diagnostics; this PR's regression targets unowned menu effects specifically.
CI attribution
Full run 39572403331 has one failing test:
Control UI Markdown table interactions > contains content-sized tables after restoring a percentage reading width. The exact name also fails on completed scheduled main run 39570916649. All other non-aggregate PR jobs pass. Native inherited evidence records both logs, identical test-source hashes, tested mergec8a0b5de258f1b63d35a6f143549102239a041df, its ordered parents and all jobs.