Repository navigation
refactor(ui): own sidebar menus outside reactive roots - #179166
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
steipete
marked this pull request as ready for review
October 21, 2026 06:51
Contributor
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. |
Contributor
Author
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
This was referenced Oct 21, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Whole-scope Solid 2 census
Measured 154 production files / 36,938 lines on base
aeae6d1d79a30036edc275bcfcccbd396d2805d3. Each cell is before → after this PR. This is a full-scope audit, not a claim that all remaining candidates are complete.Item 2 counts raw calls, including allowed primitive cleanup. Item 10 counts imported owner escape calls: three remain candidates for later removal, four mount foreign DOM. Runtime imports total 19; only three are renderer-loader candidates. Other imports load domain commands, observers, registration, or retained prewarm/retry adapters. The conditional Online handler is on Dynamic, whose runtime spread keeps it current.
What Problem This Solves
Removes the detached reactive root used to keep sidebar menus alive across provider replacement, and pairs sidebar/dropdown/placement cleanup with Solid 2 settled lifetimes.
User Impact
No intended visual or interaction change. Open menus and their pending work retain the sidebar host's lifetime; recreated views subscribe to that owner. Dropdown hover listeners still detach on removal, and placement animations cancel when their group disappears.
Why This Change Was Made
Sidebar menu state is now synchronous plain-owner state, read through a view-owned projection. Native host disposal releases its subscriptions, timers and pending work explicitly. This removes a detached
createRoot/runWithOwnerpair without moving work into the provider lifetime. The existing provider/client replacement and native reconnect tests protect that boundary.Dropdown teardown is registered before Menu publishes its settled handle; listener setup stays at handle publication. Sidebar disconnect joins existing settled teardown after session-data disconnect. DestinationGroup cancellation is also settled cleanup. Synchronous catalog/ref registrations and scoped observer cleanup remain primitive-owned.
The retained session-menu JSX and three manual renderer loaders are subsequent families. Async reads/actions will follow the shared recipes when #179123 lands; that PR and the rc.16 upgrade #179116 are still open at this checkpoint.
Evidence
Touched production LOC: 2,494 → 2,528 (+34). Whole-scope LOC: 36,938 → 36,972 (+34). Growth replaces the implicit detached-root lifetime with explicit owner subscription/disposal and read-through projection. Test LOC is unchanged. No screenshots: no markup, style, or intended visual state changes. No Crabbox/Testbox lease.
Refactor-checklist counts in touched production files: controllers 0→0; effects 1→1; render effects, untrack, direct listeners, DOM queries and flush 0→0; getOwner 1→1, runWithOwner 2→1, createRoot 2→1. The retained calls mount the plugin fallback into foreign DOM.
Exact inherited CI failure
Full CI run 39558078495 has one non-aggregate failure:
Control UI chat panel layout > opens this dashboard’s chat and details independently without losing either draftinchecks-ui-e2e (4/9). It times out atchat-panel-layout.e2e.test.ts:207waiting for the dashboard header Chat button, before Details or draft-retention interactions.A single targeted Playwright run on exact PR merge base
aeae6d1d79a30036edc275bcfcccbd396d2805d3reproduced that same named test and assertion (1 failed, 3 skipped, 288.36 s). Main commitf9376e14a2b(#179094), already an ancestor of the base, intentionally removed the duplicate header Chat control for a main Dashboard in favor of Panels. The latest earlier completed schedule39550194897predates that change and passed this case; it was not used to claim inherited failure. This is matching-name base evidence, not job-name attribution. All other selected jobs passed or were skipped. Native inherited-failure landing records CI as failed.