Repository navigation
fix(ui): preserve owner context in deferred sidebar panels - #177229
vincentkoc wants to merge 1 commit into
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: blocked before merge. What this changesThis PR restores the captured Solid owner when mounting deferred sidebar content and adds context and disposal coverage. Example: A deferred Review panel mounts under application context session-first.
Review scores
ProductKind: Bug fix · Worth it: No · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open for maintainer handling of the draft stack: the patch is correct against its pinned parent, but main already replaced the faulty deferred renderer with an owned Portal. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI sidebar region receives layout and panel definitions from the chat pane and mounts retained panel content into a sibling DOM outlet. flowchart LR
A[Application provider] --> B[Sidebar region bridge]
C[Chat pane layout and definitions] --> B
B --> D[Deferred mount]
D --> E[Restored Solid owner]
E --> F[Sidebar panel outlet]
Technical reviewBest possible solution: Preserve main's owned Portal implementation and carry useful context and disposal coverage through the stack integration. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the owner-loss path on the pinned parent, but current main removes that handoff; no target code or tests were run during this read-only review. Is this the best way to solve the issue? Restoring the ambient owner is the smallest complete repair for the parent's deferred renderer, with no new owner or parallel path; main's existing Portal cutover is the better final implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c4de9cd4c557; fix evidence: commit 41e10e238776, main fix timestamp 2026-10-19T04:54:02Z. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +10, Tests +84. Total +94 across 2 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label 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 19, 2026, 6:23 AM ET / 10:23 UTC. |
|
Closing as superseded by #176727. That change removed the separate deferred rendering root this PR repairs and now renders the panel through a Portal within the owning component. Current main retains that implementation, so the context-loss and post-disposal mounting paths addressed here no longer exist. This patch is no longer needed. |
What Problem This Solves
Deferred sidebar plugin rendering can lose the Solid context owner before mounting.
User Impact
Deferred sidebar panels retain their application context and do not mount after disposal; no research-specific behavior is added to core UI.
Why This Change Was Made
Capture the existing owner before the asynchronous handoff and render through supported runWithOwner, retaining the disposed guard. This is a generic owner fix with no research-specific core UI logic.
Evidence
The original 22 sidebar-owner tests, including context/disposal coverage, remain valid for this unchanged patch. The prior focused UI typecheck used ES2024 declarations for the unchanged Map.groupBy dependency; no new UI or full-repository typecheck is claimed.
Corrected composed candidate:
44220d472dc9f4b65a1888d224142c0f6b4efe88, treea5430dd7d5e29844376a1435cae4b77f545b08d8. Focused owner tests (62), core and strict plugin types, lint, formatting, changed-file line cap, assertion safety and SDK export sync passed on the corrected source. The affected plugin runtime and standard UI asset build passed at this signed head. SDK strict-smoke passed at80da34f9d764b5222a035bce6fc10cf6b2083d6c; its SDK/core source is unchanged here, so that proof is reused only for that scope, not relabeled as a new full build. Independent focused re-review closed the lifecycle defect at the corrected composed head with no remaining actionable P2+ in that scope. Earlier failed review observations remain historical; this is draft-publication clearance, not CODEOWNER, merge, deployment or production-auth approval.The earlier full build remains exact-head evidence only at
56b4f9544553d53d7e29e887486389da009f6bab. Its two nonfatal UI warnings were chat boot 1,491,504 B gzip vs 1,490,000 B, and new boot 1,050,753 B vs 1,050,000 B. The Codex leaf already measured 1,491,383 B and 1,050,632 B; composed UI added 121 B to each. No clean-parent/budget claim or limit change.Global max-lines retains three unchanged parent-identical failures:
ui/src/pages/chat/components/chat-message.test.tsx,ui/src/pages/config/config-page-state.ts, andui/src/pages/sessions/sessions-page-state.ts. No guard was relaxed. Live API, Google research, legacy OAuth and SIWC credentials are not source-qualified in this environment; this is not a claim that an account or credential is absent. Deterministic built-UI evidence does not establish live-provider, deployed-viewer or canonical-dist-serving acceptance. Broad quality/provider parity is not established. Draft CI skips are not landing approval.Stack and Size
Depends on #177228. Review against the explicit parent branch, not main.
Parent:
0609209b6bc228b32809c059eb24af96eae4e02d(openclaw/research-native-search-20261019). Parent-relative lines: production +12/−2; tests +87/−3; docs/config +0/−0.