Repository navigation
refactor(ui): scope sidebar people lifetimes to the Solid view - #174500
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 changes before merge. What this changesThis PR moves sidebar People subscriptions, directory observation, and card cleanup into the mounted Solid view. Example: Move the sidebar between desktop and drawer while Ada’s person card is open.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-directed refactor completes the sidebar People ownership cutover, and source review found no concrete introduced defect. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI sidebar consumes Gateway presence, the authorized profile directory, and session counts to render people and lazily open activity cards. flowchart TD
Gateway[Gateway presence] --> People[Solid People lifetime]
Directory[Authorized profile directory] --> People
Preferences[Synchronous filter preferences] --> People
People --> Sidebar[Sidebar people rows]
Sidebar --> Runtime[Lazy activity card runtime]
Technical reviewBest possible solution: Complete the Solid-owned lifecycle cutover while preserving synchronous preferences, existing directory authority, and lazy card loading. Do we have a high-confidence way to reproduce the issue? This is a lifecycle refactor rather than a reported product failure; the mounted scenarios were inspected, and no target code was executed. Is this the best way to solve the issue? The change follows the existing Solid migration contract by deleting the controller and placing subscriptions and cleanup under the view without moving synchronous snapshot preferences into signals. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f2478e569a15. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -2, Tests +29. Total +27 across 12 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 16, 2026, 2:04 PM ET / 18:04 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…law#174500) * refactor(ui): own sidebar people observations in Solid * refactor(ui): clarify sidebar profile projection binding
What Problem This Solves
Sidebar People still uses a host controller to connect presence observations, observe the profile directory, and manage its lazy person-card runtime. That lifetime belongs to the mounted Solid view.
What Changed
Replace
SidebarPeopleControllerwithcreateSidebarPeopleand remove its host registration. The view owns presence subscriptions, directory observation, interaction listeners, and cleanup. The retained sidebar owner keeps synchronous filter/status/sort preferences because snapshot restoration reads them before row rendering.The factory reads the raw owner projection: snapshot preparation itself reads the directory, so deriving the directory from prepared state would create a cycle. Preparation runs before People capture; DOM commit runs before People synchronization. Attention's direct Gateway-retirement subscription remains intact. Native detach dismisses cards immediately, while a same-task reparent retains working interactions. No tag, class, route, selector, markup, CSS, or lazy-boundary change is intended.
Evidence
pnpm tsgo:uipassed971085d5d7b88caa5a2fa8872c4e2243f84b29dfci:fullrun 38942602514, attempt 1: 35 passed, 26 skipped, 4 failed; failures attributed belowThe initial startup raw byte total is identical (1,034,166 B), and mapped startup source sets are unchanged; the small compressed difference accompanies generated asset-name changes. The lazy person-card runtime remains behind its existing import. No new dependency was added.
The mounted suite emits existing
TimeoutOverflowWarningmessages with its synthetic future presence timestamps; the unchanged presence-activity lifecycle schedules that deadline directly. The same warnings are retained in the earlier prepared-suite evidence. This PR does not claim to fix that separate timer owner.Size and ownership
createEffectcreateRenderEffectuntrackaddEventListenerProduction decreases by 2 lines; tests grow from 652 to 681 (+29) across twelve touched paths. The added effect owns an external context subscription. The synchronous preference owner is retained for snapshot restoration, while its former view lifecycle is gone. No cloud proof lease was used.
CI exception
CI tested merge
feeddf2dca1a1969e04c1b71d2bc0e9a6ddee1ac, whose ordered parents are maind9f2d5b596be5c900d741b7b26d5b033de0f68b5and exact PR head1cae2e0db3c318674015d553f1e7e662ec462f74. An independent local merge reproduced its tree; the actual merge delta is the twelve intended People paths.checks-ui-e2e (5/9):Link hover previews > keeps title hints when the optional hover runtime cannot loadchecks-ui-e2e (6/9):Claude native session catalog > auto-loads older chat without moving the viewport and disables paired-node continuationchecks-ui (3/3):web push service worker readiness > still rejects when service worker readiness times outopenclaw/ci-gateThe web-push test imports its runtime directly without mounting People. Its test/runtime, retry and normalization packages, error formatting/redaction, test runner and helpers, UI Vitest configuration, and lockfile are byte-identical to the actual tested main parent. The readiness owner clears its own timer in
finally. This CI shard uses non-isolated Bun fork workers: per-file cleanup disposes Solid roots, restores timers, and retires DOM/module state. The installed locked Vitest source creates separate child processes and retains the process's concurrency ID. Mounted sidebar cases ran on IDs 2/3; web-push ran on ID 1. The extra timer's origin remains unknown. No timer workaround or claimed repair is included.All other required jobs passed, including both real-Gateway shards, UI shards 1/2, the other seven E2E shards, production/test types, guards, lint, security-fast, and performance. The native operator-authorized exception retains these failures; CI is not reported green. No CI rerun or broad local suite was used.