Repository navigation
refactor(ui): observe custodian history reads with Solid - #179845
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 replaces Custodian history’s presentation signal with an owner-backed asynchronous Solid read and loading/error boundaries. Example: Expand Changed paths for gateway.port, then click Load more while the next page is delayed.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored refactor open; exact-head CI confirms that pagination replaces expanded history cards and loses their disclosure state. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Custodian page admits paginated openclaw.changes.list requests through the current Gateway client, rejects stale results, and renders accepted change records in the Control UI. flowchart TD
A[History controls] --> B[Synchronous request owner]
B --> C[Gateway changes RPC]
C --> D[Accepted history snapshot]
D --> E[Solid receipt memo]
E --> F[Loading and error boundaries]
F --> G[Change cards]
Technical reviewBest possible solution: Keep one stable history-card subtree while the existing request owner and Solid readiness slots update pagination and retry feedback. Do we have a high-confidence way to reproduce the issue? Exact-head CI exercises the mounted Custodian page with a delayed pagination response and records card replacement at the new test’s identity assertion; no local execution or current-main failure is claimed. Is this the best way to solve the issue? Observing admitted receipts follows the repository’s Solid recipe, but the content boundary must preserve existing card identity before this is a behavior-preserving refactor. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 604a2923292b. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +69, Tests +86. Total +155 across 3 files. Added test files: 1. View PR surface stats
Review metrics
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 21, 2026, 4:22 PM ET / 20:22 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…9845) * refactor(ui): observe custodian history reads with Solid * fix(ui): retain Custodian history cards during revalidation
Raw imported-symbol AST census at
a542f24683c324762f28404d99423df33acbc3d2. These are syntax counts, not unclassified migration debt. Column 3 countsasyncmemo syntax; promise-returning non-asyncmemos require manual classification.What problem this solves
Custodian history uses an object-valued signal to copy its entries, disclosure, load kind, cursor and error at every request transition. The change keeps the existing synchronous admission owner and lets a history-surface async memo observe each admitted request.
Loading,latestandisPendingdrive the existing initial skeleton and load-more feedback; a narrowErroredregion handles retry feedback without replacing the expanded change cards.The Gateway client, method-advertisement check, duplicate-request admission and stale connection-result rejection remain in their existing owner. Closing/reopening still resets the page cursor, and reconnecting still retires the old history. No new RPC, dependency, component registration, route, CSS, label or selector is introduced.
The request receipt is operation identity, not an editable array/object draft. The plain owner snapshot stores accepted server results; no writable presentation mirror is added. A shared
HistoryContentrenders the identical initial fallback and ready chrome.Proof
ci:fullpresent from creationThe focused new history-file boundary case holds the initial read, double-clicks load more to prove one admitted request, retains the same expanded change card through failed pagination, then retries with a reset cursor. Existing tests cover pagination/reset and late results after Gateway replacement. No implementation-shaped test seam is added.
Markup, CSS, text and visible states are retained, so this internal rendering/state change introduces no visual design delta. No screenshots or live-data proof are claimed.
Production LOC: 396 → 458 (+62) across the page and history renderer. The extra lines are native readiness/error boundaries plus shared fallback/ready rendering. The list stays mounted while skeleton feedback changes, and semantic entry keys retain expanded-card DOM through pagination failures. The existing page suite is unchanged; the new focused file avoids growing it beyond its 1,000-line lint limit. The exact same-machine comparison reduces every measured boot JS surface: startup −18 B, Chat 1,441,865 → 1,441,777 B (−88 B), and New Session 1,019,633 → 1,019,596 B (−37 B). The base exceeds the current startup cap; this head satisfies the no-growth rule. No budget/baseline changes. No external test lease.
CI repair: the original head exposed a real retained-card regression in
custodian change history > retains expanded change cards through a failed delayed read and retries. The loading branch replaced the containing list before pagination settled. The repair keeps that list mounted, preserves the original identity assertions, and adds connection-replacement coverage. The repaired candidate passes 2/2 focused tests, UI tsrs, formatting, independent P0–P2 review with source integrity verified, and the final same-machine build/strict comparison. Typed UI lint passed after selecting the canonical UI configuration; earlier broad-config SDK declaration preparation timed out before source diagnostics. Final-head production Knip passed with zero findings.Repaired-head CI 39674956904 completed with all UI unit jobs passing and one E2E failure:
Chat boot render storm > prewarms session actions after a busy cold load without building unrelated menus or losing the draft. The same case fails on the independent Chrome-store PR. It passes on latest scheduled main 39671240295; no inherited classification is claimed. A shared exact-604a2923292bd985e2f7ccdc19fea9360aed8bc2base diagnostic passed this case locally (1/1, 363.11 s overall; Playwright Node configuration). Current-head reproduction and overlay-state diagnosis remain open, so this is not inherited-failure landing evidence.Current CI attribution: the exact failing case
Chat boot render storm > prewarms session actions after a busy cold load without building unrelated menus or losing the draftalso fails on the latest completed scheduled main run 39679539559, waiting for the staleMessage permissionsheading at line 233. This supersedes the earlier scheduled-main observation that passed that case. No other non-aggregate job fails on this PR; security-fast passes. The native inherited-failure route records the failed CI result, actual tested merge, unchanged failing test source, matching name/assertion, and scoped passing proof.