Repository navigation
fix(ui): retain sidebar menu entries in their Solid owner - #179307
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c89c7604e6
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| class: "sidebar-customize-menu__item", | ||
| icon: <Icon name="listTree" />, | ||
| }, | ||
| ...(canCreateClawDraft(context) |
There was a problem hiding this comment.
Invalidate roster items when Claw availability changes
When gateway.controlUi.experimental.claws is toggled while the roster remains mounted and no card update occurs, this memo does not rerun: canCreateClawDraft(context) reads the runtime-config and gateway owners directly without establishing a reactive dependency, while the memo's unrelated cards() dependency may remain unchanged. The menu therefore keeps the old create-claw entry state—missing after enablement or still visible after disablement—until another roster update or remount. Consume the relevant config/capability projection or owner revision when deriving these items.
AGENTS.md reference: ui/AGENTS.md:L16-L16
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR retains four sidebar menu item arrays in Solid memos and pairs roster link registration with settled cleanup. Example: Select Move up for route:sessions between route:usage and person:ada.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this PR addresses a real Solid ownership defect, but the roster memo still needs runtime-config invalidation. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI sidebar renderers turn navigation, roster, and session-owner facts into shared Menu entries whose selections dispatch existing owner commands. flowchart LR
A[Navigation and config owners] --> B[Sidebar projections]
B --> C[Renderer item memos]
C --> D[Shared Menu]
D --> E[Selection handlers]
E --> F[Existing owner commands]
Technical reviewBest possible solution: Keep the renderer-owned memos and settled link cleanup, and derive Claw availability through the existing runtime-config projection. Do we have a high-confidence way to reproduce the issue? The shared Menu event path explains the reported ownership warning, and source inspection establishes the missing runtime-config dependency; no reproduction was executed during this read-only review. Is this the best way to solve the issue? Renderer-owned memos are a small, appropriate fix using existing owners, provided their availability inputs remain reactive. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 086548f2463b. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +11, Tests +12. Total +23 across 5 files. Added test files: 0. View PR surface stats
Review metrics
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, 6:19 AM ET / 10:19 UTC. |
|
Merged via explicitly authorized admin squash with prior CI and scoped validation.
|
…place it once (openclaw#179254) Peter (2026-10-20): "the sidebar has a late reload flicker that looks ugly". Live filmstrips on Team: on chat deep links the warm cached sidebar shrank to a partial list ~3.2 s into a reload and grew back with avatars ~110 ms later; on the dashboard route the session list went completely blank for ~1 s first. Two causes: when hello arrived before the user identity resolved, the snapshot scope's profileId briefly became null, retiring the admitted cached roster (blank list); and live sessions.list results were published per query (partial list) instead of once. Keep the admitted boot profile while hello's selfUser is unresolved (a different resolved user still changes scope and replaces), hold the cached roster until the foreground pane is ready plus an idle period (1.8 s cap), then hand off to the live roster once with row identity preserved; sidebar menus and group dialogs move behind their lazy boundaries to keep chat boot JS under budget. Evidence (AWS c7a.4xlarge, 11 pairs per route, per-frame sidebar DOM probe + filmstrips): roster transitions chat 4 -> 1, dashboard 3 -> 1; blank frames 78 -> 0 / 59 -> 0; 20 cached rows retained; FCP 280 -> 276 / 288 -> 276 ms; hello 774 -> 745 / 825 -> 771 ms; LoAF 394 -> 351 / 346 -> 295 ms; transcript settled +28.1 / +12.2 ms paired (within the no-regression rule; an earlier +45 ms chat variant was explicitly accepted and is documented in the PR). Chat boot JS 1,499,305 B gzip (-608 B, 695 B headroom). Runtime +70 LOC (11 files; most of the line count moves menu rendering behind its lazy boundary). 155 focused + 24 native e2e tests; full UI e2e and changed checks (remaining failures reproduce on pre-patch or newer main); exact-head CI red only on the account-menu precision assertion fixed upstream in openclaw#179307. Avatar initials -> image swaps remain a separate follow-up.
…79307) * fix(ui): retain sidebar menu entries in their Solid owner * test(ui): allow subpixel rounding in publication menu geometry * test(ui): await refreshed patch before folding code
…place it once (openclaw#179254) Peter (2026-10-20): "the sidebar has a late reload flicker that looks ugly". Live filmstrips on Team: on chat deep links the warm cached sidebar shrank to a partial list ~3.2 s into a reload and grew back with avatars ~110 ms later; on the dashboard route the session list went completely blank for ~1 s first. Two causes: when hello arrived before the user identity resolved, the snapshot scope's profileId briefly became null, retiring the admitted cached roster (blank list); and live sessions.list results were published per query (partial list) instead of once. Keep the admitted boot profile while hello's selfUser is unresolved (a different resolved user still changes scope and replaces), hold the cached roster until the foreground pane is ready plus an idle period (1.8 s cap), then hand off to the live roster once with row identity preserved; sidebar menus and group dialogs move behind their lazy boundaries to keep chat boot JS under budget. Evidence (AWS c7a.4xlarge, 11 pairs per route, per-frame sidebar DOM probe + filmstrips): roster transitions chat 4 -> 1, dashboard 3 -> 1; blank frames 78 -> 0 / 59 -> 0; 20 cached rows retained; FCP 280 -> 276 / 288 -> 276 ms; hello 774 -> 745 / 825 -> 771 ms; LoAF 394 -> 351 / 346 -> 295 ms; transcript settled +28.1 / +12.2 ms paired (within the no-regression rule; an earlier +45 ms chat variant was explicitly accepted and is documented in the PR). Chat boot JS 1,499,305 B gzip (-608 B, 695 B headroom). Runtime +70 LOC (11 files; most of the line count moves menu rendering behind its lazy boundary). 155 focused + 24 native e2e tests; full UI e2e and changed checks (remaining failures reproduce on pre-patch or newer main); exact-head CI red only on the account-menu precision assertion fixed upstream in openclaw#179307. Avatar initials -> image swaps remain a separate follow-up.
Whole-scope Solid 2 census
Source audit on current
maina5e54e449604→ this PR’s changes. This PR fixes menu JSX ownership; the four remaining actionable candidates belong to #179247 (loaders) and #179302 (descriptor store). A separately audited combined overlay with #179323 and those two PRs has zero actionable survivors; that is provisional, not merged-main proof.Combined candidate scope: 155 production files / 37,176 physical lines; current main: 154 / 37,129. Raw survivors are separately audited: 12 primitive/resource cleanups, four foreign-DOM owner calls, one immutable rail-identity conditional, three admitted/cancellable read adapters, four atomic identity/geometry/receipt signals, two optional null-default contexts, four independently activated Loading regions, and imperative command/registration imports. These are allowed contracts, not hidden actionable counts. Descriptor reconciliation, repository path validation and private-image abort/Blob custody stay with their synchronous owners. Reload feedback spans document navigation; clipboard and defaults-save feedback already use actions. No sibling content requires coordinated Reveal. The async/actions recipe file is absent on this main; rc.16 installed cheatsheet and current skill are the API references.
Problem and change
Menu selection reads its items outside a reactive owner. The rail, group, catalog-filter and roster renderers recreated JSX-bearing arrays there, producing unowned-effect diagnostics for rail selections. Their arrays now live in mounted-owner memos. Roster link registration also captures the element, registers it in
onSettled, and removes that exact keyed binding on cleanup. Existing command owners, actions, disabled states, locale updates and focus behavior are preserved.The main conflict resolution retains the pinned-agent Create Claw-only policy and
clawCreatorActiondispatch. Two CI test repairs preserve their assertions: the mobile menu permits 0.05 px of browser geometry rounding, and the diff-folding test waits for the refreshed +3 source header before clicking its source-keyed row. Merged main includes #179073, which fixes explicit diff refresh admission.Proof
NO_OWNER_EFFECTand pass on head. Roster ownership cleanup is not claimed as a separately reproduced leak.be60dcfb7da554858d811364ff682a3d88742acb, including prior widget and folding cases40a16aadf9ba→be60dcfb7da5: startup 331,076→331,067 B gzip (−9); 8 JS / 1 CSS, CSS 40,439 B unchangedBoth builds exceed the absolute startup cap; this change passes the current ≤64 B comparative growth rule. Every saved build-file hash was verified. Local folding replays stopped during setup and are not counted as passing tests; full CI supplies that proof.
Production LOC across the three renderers: 1,385→1,396 (+11) for memo bindings and explicit roster registration/cleanup. No intended visual or style change, so screenshots are not applicable. No remote test lease or dependency change.
Landing uses the task-authorized replacement recovery for a confirmed-cancelled auto request. Its prior-success evidence points to this identical green head with an empty delta; no failed check is waived.