Skip to content

fix(ui): own sidebar menu entry render effects - #179282

Merged
steipete merged 2 commits into
mainfrom
solid2/comp-a-menu-entries
Oct 21, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/comp-a-menu-entries

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

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.

File family Files 1 stale native handlers 2 onCleanup 3 async reads 4 unconverted mutations 5 renderer loaders 6 structured signals 7 hand createComponent 8 throw-only context 9 uncoordinated Loading 10 owner calls
app-sidebar* 42→42 0→0 2→2 0→0 0→0 1→1 0→0 0→0 0→0 0→0 3→3
sidebar-* 40→40 0→0 3→3 1→1 4→4 2→2 2→2 0→0 0→0 0→0 0→0
session-* 72→72 0→0 7→7 3→3 0→0 0→0 4→4 0→0 0→0 0→0 1→1

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_EFFECT diagnostics.

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

Check Result
Regression The plugin navigation pointer/keyboard test fails on base with NO_OWNER_EFFECT; passes with the memoized producer
Focused Bun tests 91/91 across plugin navigation and sidebar people
UI typecheck tsrs passed on rc.16
Independent review through P2 Scoped-clean; shared Menu and dropdown source supplied
Static checks Focused lint/format and controller guard passed; exact committed patch also passed both configured content guards and the normal pre-commit formatter in a baseline checkout. Production Knip recorded before landing.
CI ci:full for menus and focus; exact-head performance comparison

Production 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 merge c8a0b5de258f1b63d35a6f143549102239a041df, its ordered parents and all jobs.

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T09:00:20.859973Z 783cbd5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Activation rebuilds JSX outside a reactive owner and can emit NO_OWNER_EFFECT diagnostics.
  • After: Activation reads memoized entries whose effects retire with the menu renderer.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported repair with useful regression coverage and no identified defect; available behavioral evidence remains harness-based.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate and introduces no material authority change; supplied validation exercises the production menu owners through an in-process test harness.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Repeated sidebar menu selections can allocate render effects without a disposable owner.
Reason: This is a narrow lifecycle correction with unchanged menu capabilities, and the maintainer author also owns the prior sidebar migrations.

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
Reviewed head: 91a9c4fe8eb467098204ccfb6868a812682cb2c5

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No shipped Control UI console trace demonstrates repeated selection and disposal across all three menus; the base-failing/head-passing regression result is author-reported.
Agent review details

How this fits together

Sidebar 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]
Loading

Technical review

Best 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

  • Agent and identity menu entries keeps the original intent (f3e38df: The native-menu migration preserved existing sidebar actions, grouping, focus, and keyboard behavior.)
  • Plugin navigation menu entries keeps the original intent (ca189a9: The previous refactor inlined a single-caller renderer into the existing plugin-menu owner while retaining selection checks and shared overlay ownership.)
  • Reactive menu position forwarding keeps the original intent (e80558a: The Solid migration preserved sidebar placement and host contracts; direct prop forwarding retains that intent without an initial-value snapshot.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit f3e38df adds ui/src/components/app-sidebar-agent-menu.tsx:118 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f3e38df873ad; files: ui/src/components/app-sidebar-agent-menu.tsx)

PR surface

Source +2, Tests +5. Total +7 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 31 29 +2
Tests 1 5 0 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 36 29 +7

Labels

Label changes:

  • add P2: The PR fixes repeated unowned render-effect allocation in sidebar menus without evidence of an urgent user-facing outage.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The PR fixes repeated unowned render-effect allocation in sidebar menus without evidence of an urgent user-facing outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 21, 2026, 5:06 AM ET / 09:06 UTC.

@steipete
steipete enabled auto-merge (squash) October 21, 2026 09:12
@steipete
steipete disabled auto-merge October 21, 2026 09:19
@steipete
steipete merged commit 63aad5a into main Oct 21, 2026
110 of 113 checks passed
@steipete
steipete deleted the solid2/comp-a-menu-entries branch October 21, 2026 09:33
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
* fix(ui): own sidebar menu entry render effects

* style(ui): format menu ownership regression assertion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant