Repository navigation
refactor(ui): finish display cleanup and enforce Solid idioms - #177472
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 replaces display-only memos with reactive reads and restores Inbox approval focus after Solid settles. Example: Approve Inbox item selected while item remaining stays visible.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a focused, maintainer-directed simplification with no actionable correctness or security findings; exact-head CI is still running. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI views consume application projections and reactive props, render settings and Inbox controls, and forward mutations to existing application owners. flowchart LR
A[Application owners] --> B[Reactive projections and props]
B --> C[Settings views]
B --> D[Inbox panel]
D --> E[Approval owner]
E --> B
D --> F[Settled focus recovery]
Technical reviewBest possible solution: Retain the focused simplification and existing equality and focus-lifetime boundaries. Do we have a high-confidence way to reproduce the issue? No product bug is claimed; source inspection confirms redundant display computations and the synchronous focus flush targeted by this refactor. Is this the best way to solve the issue? The patch uses existing reactive reads and Solid's settlement primitive without introducing state or replacing application owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 806e3b3609fb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -6. Total -6 across 7 files. Added test files: 0. View PR surface stats
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 19, 2026, 12:37 PM ET / 16:37 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…aw#177472) * refactor(ui): remove display-only memo and focus bookkeeping * test(ui): warm lazy preview before teardown assertion * test(ui): await lazy skill menu navigation * refactor(ui): ratchet Solid flush and ownership escapes
Create the three empty Solid guard baselines added by openclaw#177472 in the shallow merge fixture. Recognize ESRCH when a terminated process disappears during a /proc stat read in the canonical ownership proof exposed by openclaw#173505. Preserve every guard, deadline, and live-child assertion.
What Problem This Solves
Several settings/pairing views allocate memo nodes for cheap display values, and Inbox approval focus forces a synchronous render flush. The wave-zero guard also lacks shrink-only limits for Solid flush/owner calls and cannot reject constant-only memos.
User Impact
No intended visual or behavioral change. Fifteen display memos become tracked accessors or direct JSX reads. Inbox approval focus settles after the DOM commit and retains the existing disposal, presentation-generation and connected-target checks. Native editable-input, collection, image-loading and resource equality boundaries stay intact.
Why This Change Was Made
The guard now counts actual Solid
flush,getOwnerandrunWithOwnerimports, including aliases, namespaces and optional/computed calls. Domain methods and shadowed locals are excluded. New per-file baselines can only shrink. An option-free memo that returns only a literal is rejected; property/equality, async and option-bearing memos keep their contracts. The existing four ratchets retain their counting semantics.The chat prerequisite #177461 and the retained-content/focus cleanup #177460 are merged. This PR combines the final seven-file display cleanup with its enforcement, so the new baselines include the removed Inbox flush immediately. No imports, dependencies, routes, host tags, classes, or lazy boundaries change.
Evidence
pnpm tsgo:uipasses, including after integrating mainci:fullselected for the final headThe startup measurements compare the original reviewed production head with its base. Later policy changes add no runtime code; integration with newer main will be covered by final-head CI. No local broad suite or parity run was added. Markup and styling are unchanged, so visual screenshots are not applicable.
Before / after
The seven UI production files shrink 3,060 → 3,054 LOC (−6), memo calls 116 → 101, and
flushcalls 1 → 0. The initial global guard baselines on the final integrated head are 6 flush / 10 getOwner / 18 runWithOwner. Existing global ratchets stay 91 effects / 47 untrack / 59 listeners / 49 DOM queries. The checker grows 261 → 461 LOC (+200) for import/scope-aware counting; guard fixtures grow 269 → 380 (+111). Across all 15 files the diff is +401 / −51 lines, including the three initial baselines and their documentation; the runtime UI still shrinks.CI follow-through
An earlier run exposed two E2E fixture timing assumptions. The lazy preview could load after the persistence debounce, and a one-shot visibility probe could skip the lazy Skills action. Both corresponding fixes are now on main (#177509 and 003d08f), so the conflict resolution adopts main's versions verbatim; this PR adds no changes to those E2E files. The original assertions remain intact. The final seven UI changes are the original production patch, plus the guard and its fixtures.
The initial mock-exports failure was independently reproduced on the exact base and is now fixed on main. Final-head CI is required; no current failure is waived.
The targeted lint wrapper hit its 300-second Plugin SDK declaration-build timeout before lint execution. Direct oxlint on the three changed script/test files with the same config and tsconfig passes; oxfmt and diff checks pass. This is recorded as an environment/setup gap, with final-head CI still required.
Prior-head CI (
0a83b4a02aa5, run 39295767929) completed all 70 jobs: every non-skipped job passed except the stale ACP mock allowance and its aggregate. That exact failure was reproduced on main parentb8f91cb249b8; full UI, E2E and real-Gateway coverage passed. GitHub repeatedly left mergeability UNKNOWN, so current head470871a3477cmerges mainea16ec5335c2without conflicts to force recomputation. Its real diff is the same 15 files. UI types, the guard and fresh independent review pass. New-head CI is required; old-head evidence is not presented as current-head success.Current-head run 39302662579 reports
check-docsfailing only atpnpm format:check, namingsrc/agents/tools/nodes-tool-media.ts. The exact targeted formatter failure, including matching oxfmt/Bun parity, reproduces on the tested main parentea16ec5335c2. The file is outside this PR’s diff. All 70 jobs are now terminal. Every other non-skipped job passed, including full UI, browser and real-Gateway coverage; only this formatting failure and its aggregate remain red. Native inherited-failure recovery records the exact base reproduction and matching input blobs.