Repository navigation
refactor(ui): derive view lifetimes and retire unused controllers - #174263
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 maintainer review before merge. What this changesThis PR derives New Session subscription lifetimes through Solid memos, removes unused controller code, and simplifies native DOM bindings. Example: New Session switches from the main agent's session roster to another agent's roster.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored refactor removes obsolete lifecycle plumbing while preserving existing state owners; no actionable patch defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI consumes synchronous application owners through reactive projections, which supply model controls and welcome recents while native overlays own picker interaction. flowchart LR
A[Application owners] --> B[Source keyed memos]
B --> C[Reactive projections]
C --> D[New Session views]
D --> E[Native picker overlays]
E --> A
Technical reviewBest possible solution: Retain this focused cleanup with existing owner, parking, native-event, and localization contracts intact. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a defect report; source and existing mounted tests establish the contracts being retained. Is this the best way to solve the issue? The approach fits the existing projection owner and removes superseded plumbing without introducing another state authority. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 01e659317b7f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -17, Tests -63. Total -80 across 28 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, 10:06 AM ET / 14:06 UTC. |
Main hourly 38908699969 exposed a same-name auth wrapper and dead exports. The transport redactor became unused after the intentional content-free logging cut in d8faf88; the later cancellation fix is preserved. Keep the public SDK auth-patch name and narrow signature. Distinguish the internal normalizer and migrate its callers. Retire the unused redactor and Crabbox case builder, make local Ollama/Nostr/Talk helpers private, and link the existing oMLX guide from the provider index. Proof: 102 owner cases pass in 247.39s and 532 shared-helper consumer cases pass in 445.57s, both via pnpm test with --maxWorkers=1. Owning typechecks, architecture, source contracts, targeted lint/format and P2 review pass. Knip full-tree and scripts are clean; production has only I18nController, covered by active PR #174263. The labeler fix landed via #174277. No ignores, baseline increases, assertion changes or timeout changes.
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Hourly 38916811035 reported the route inventories as unused, but Vite loads them through runnerImport and embeds them in the offline shell. Keep that runtime contract and model the actual named property reads in Knip through its existing MJS compiler. Preserve Vite discovery and TypeScript declaration-to-source mapping; add no ignores. Make four remaining declarations private after #174279 and #174260 removed external logging consumers and #174255 consolidated fixtures. Their internal callers and behavior remain intact. I18nController was already removed by #174263. Proof: all three deadcode export scans have zero findings; the original baseline had six. The guard passes with pnpm test test/scripts/check-deadcode-exports.test.ts --maxWorkers=1 (5.67s). Existing route/build/cache tests and 148 owner/importer cases pass (199.76s for the owner batch). Owning typechecks, typed lint, boundary lint, and formatting pass. Negative control and P2 review recorded in PR evidence. P2 autoreview is scoped-clean with no actionable findings.
Main hourly 38908699969 exposed a same-name auth wrapper and dead exports. The transport redactor became unused after the intentional content-free logging cut in 36f75e7; the later cancellation fix is preserved. Keep the public SDK auth-patch name and narrow signature. Distinguish the internal normalizer and migrate its callers. Retire the unused redactor and Crabbox case builder, make local Ollama/Nostr/Talk helpers private, and link the existing oMLX guide from the provider index. Proof: 102 owner cases pass in 247.39s and 532 shared-helper consumer cases pass in 445.57s, both via pnpm test with --maxWorkers=1. Owning typechecks, architecture, source contracts, targeted lint/format and P2 review pass. Knip full-tree and scripts are clean; production has only I18nController, covered by active PR openclaw#174263. The labeler fix landed via openclaw#174277. No ignores, baseline increases, assertion changes or timeout changes.
…enclaw#174263) * refactor(ui): derive library view lifetimes in Solid * refactor(ui): finish native boundary cleanup * test(ui): update Gateway fixture to shell invalidation API
…w#174358) Hourly 38916811035 reported the route inventories as unused, but Vite loads them through runnerImport and embeds them in the offline shell. Keep that runtime contract and model the actual named property reads in Knip through its existing MJS compiler. Preserve Vite discovery and TypeScript declaration-to-source mapping; add no ignores. Make four remaining declarations private after openclaw#174279 and openclaw#174260 removed external logging consumers and openclaw#174255 consolidated fixtures. Their internal callers and behavior remain intact. I18nController was already removed by openclaw#174263. Proof: all three deadcode export scans have zero findings; the original baseline had six. The guard passes with pnpm test test/scripts/check-deadcode-exports.test.ts --maxWorkers=1 (5.67s). Existing route/build/cache tests and 148 owner/importer cases pass (199.76s for the owner batch). Owning typechecks, typed lint, boundary lint, and formatting pass. Negative control and P2 review recorded in PR evidence. P2 autoreview is scoped-clean with no actionable findings.
What Problem This Solves
New Session kept source identity synchronized through three effects even though the values are derived. The shell also retained a forwarding
requestUpdatealias, and the i18n barrel exported an unused legacy controller.Own projections in source-keyed memos, so replacement disposes the old subscription and parking still disconnects live reads. Delete the dead i18n class/tests, call the shell’s existing
invalidateoperation directly, and name layout disposal explicitly. Capture the worktree-name input by ref, use the existing listener helper for picker events, compose classes through Solid’s native array form, and bind the optional custom-model input by ref. Synchronous domain owners and native DOM integrations keep their authority.Evidence
invalidateTargeted lint has no errors; its existing Popover callback warning is unchanged. No visual design, CSS, tag, selector, route, or dependency changes. Existing tests cover model updates, source replacement, roster parking, and checkout validation. Full UI integration belongs to
ci:full; no local E2E/parity runs.Production code falls by 17 lines; dead test code falls by 63 lines. The retained toast and board bridge classes own synchronous deadlines and transport admission, respectively. No release-note behavior change.
The wider assigned audit found no remaining pure copied-state effects outside the composer work in #174226. Retained effects synchronize native geometry/focus, lazy loads, transport requests, or readiness receipts. Scope-upgrade and GitHub-publication owners remain synchronous domain authorities. The shared
ControllerHost/SubscriptionsControlleradapter still serves ChatPaneBase and ten files of consumers, including active #174247 and #174035; retiring it here would duplicate those owners or cross their ongoing cutovers. DOM queries left in native menus, hovercards, branch suggestions, and page/palette popovers follow those islands’ focus and ordering contracts.CI repair: run 38911020547 caught one directly coupled Gateway fixture still naming the removed
requestUpdatemethod. The fixture now usesinvalidate; the exact Gateway type shard and existing retained-pane integration test pass. No production change or new test was needed. The same run also hit an unrelated Plugins CSS line-clamp assertion. The replacement head received fresh full CI as described below.Full replacement-head run 38914561541 completed: 71 jobs terminal. Both real-Gateway shards, all UI unit suites, the repaired Gateway type shard, and every other selected check passed except
Activity recap and screenshot polish > loads remote previews during refresh at 390 pxand the downstream gate. The test times out waiting for four image elements to report complete, before the refresh interaction. Activity, image presentation/admission, CSS and fixture source inputs are byte-identical to the tested main parent; this PR does not change image completion. The precise browser delay remains unknown.The exact Activity case passes in completed scheduled main run 38908699969. The latest scheduled main run 38916811035 was queued at the comparison read. This is coordinator-authorized source-unrelated attribution, not a matching-main-failure claim. Native admin evidence binds tested merge e40cc11eb3159571d57f1907177162003a83b306, ordered parents, source hashes, exact job logs, completed job accounting and security-fast.