Repository navigation
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. |
Observe pending preview receipts through stable accessors so bridge prop batching cannot hide a new file read behind previously settled content. Keep keyed render callback arity explicit and compare boxed keys by receipt identity, preserving foreground content and scroll while sibling responses finish. Extend the selected-file retry regression to start from rendered Markdown and follow its relative link while the selected reply is held.
Integrate the official Gateway retry animation fix for the failing 140 percent text-scale case. The nine-file preview patch remains byte-identical to its reviewed form; no conflict resolution or preview logic changes were needed.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fb6164bf1b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const fileRequest = () => { | ||
| const current = state(); | ||
| return current?.fileRequests.get(current.activePath)?.promise ?? current?.inventoryRequest; |
There was a problem hiding this comment.
Key the detail boundary by the active path
When the initial inventory returns the entry file as unavailable, readFile throws and the modal's Errored boundary enters its fallback. If the user then selects a non-fetchable sibling such as a too-large file, fileRequest still returns the same inventory promise, so the keyed detail boundary is not remounted and remains stuck on the previous error instead of displaying the sibling's status message. Include the active path in this boundary identity so selection can clear an error even when no file-specific request is created.
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR replaces manual preview loading and error fields with native Solid async boundaries for plugin skills and Claws files. Example: Follow the Configuration link from SKILL.md to references/config.md while its read is pending.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this owner-directed refactor has useful visual proof, but introduces a selected-file error recovery regression. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherPlugin and Claws preview owners admit Gateway reads and retain accepted file contents; the shared modal consumes their completion receipts to display inventory, documents, loading states, and retry controls. flowchart LR
A[Preview selection] --> B[Plugin or Claws owner]
B --> C[Gateway file read]
C --> B
B --> D[Accepted contents and receipts]
D --> E[Solid async boundaries]
E --> F[Inventory and document modal]
Technical reviewBest possible solution: Keep the native boundaries and key the detail leaf by selected path plus request identity, preserving it across unrelated completions. Do we have a high-confidence way to reproduce the issue? Source establishes the failure: return unavailable SKILL.md and a too-large sibling in the inventory, then select that sibling; both selections retain the same promise identity, so the errored detail boundary is not reset. Is this the best way to solve the issue? Native async presentation follows the repository's Solid direction and retains existing request owners, but request identity alone is insufficient to preserve selection-specific error recovery. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f28188b078ce. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +45, Tests +95. Total +140 across 9 files. Added test files: 1. 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 21, 2026, 5:52 PM ET / 21:52 UTC. |
What Problem This Solves
Plugin skill previews and Claws file previews maintained separate loading and error fields beside their request state. Move those reads onto Solid's native async boundaries while preserving the existing owner contracts, lazy route boundaries, host tag, selectors, cancellation, retry behavior, and retained file inventory.
User Impact
The inventory remains available while a selected file loads. Following a relative Markdown link from an already rendered entry now selects the requested file and shows its loading skeleton. Background file completion preserves the foreground document and scroll position.
Why This Change Was Made
The owners publish completion receipts; their existing admission, deduplication, source validation, accepted snapshots, and stale-result checks remain authoritative. Persistent read memos feed two independent
<Loading>/<Errored>leaves in the shared modal. Stable request accessors allow those leaves to observe new requests while the bridge holds a pending prop update. Keyed request boundaries reset failed reads for Retry, while receipt equality preserves settled content when unrelated owner publications arrive. The dialog shell and inventory stay mounted. Both callers use the component returned bydefineSolidBridge; the redundant registration wrapper and raw-element declaration are removed.Evidence
Integrated base
d84c03e3f52ece844b6fbc991f0a50fddeea63b9, final headfb6164bf1b186354f70d73331c11c489bd069234.ci:fullrequests every UI, browser-extension, and real-Gateway shard. Final-head CI remains the canonical suite proof.pnpm install --frozen-lockfileandpnpm tsgo:uigit diff --checkfb616in CI run39667833363UI shard 1/3, including held relative-link loading, rejection/retry, deduplication and retirement. That shard separately fails the 30 sidebar cases described below.fb616in CI run39667833363UI shard 3/3: keyboard, copy, focus, reconnect, large content, relative links and retained sibling scroll.fb616in CI run39667833363, job119458209651: the 3 full-bundle routes, retry/navigation, retained foreground scroll and reconnect. Suite: 23,883 ms. The containing E2E shard 8/9 passed.4543: selected config skeleton, 2 retained inventory rows, cached foreground entry retained after background completion, scroll 300 → 300, reconnect closes the viewer and reopening succeeds; no page or cleanup errors. Renderer blobs are unchanged by integration.4543CI. The separate built-app capture uses the existing independent-route harness with initial-roster waiting disabled.fb616(25m 22.3s); no ignores or baseline waiver.948f6bc3→ reviewed4543: 324,945 → 324,973 B startup JS gzip (+28 B), raw 969,980 B unchanged, 8 JS / 1 CSS request. Exact integratedfb616CI performance passes at 324,982 B gzip, 973,548 B raw, 9 JS / 1 CSS request; CSS 40,780 B gzip.Current exact-head CI
39667833363completed with 2 failed test jobs plus the aggregate gate. UI unit shard 1/3 has 30app-sidebar-rail.test.tsfailures from duplicateopenclaw-modal-dialogregistration. Latest completed scheduled main39662150265passes all UI unit shards, so these failures are unqualified and admission is held. E2E shard 6/9 fails onlychat-responsive.e2e.test.ts > Chat responsive app behavior > renders one named card for every success and failure in a mixed attachment batchat the line-462 left-gap assertion; that exact test also fails on scheduled main.The unit reporter places
chat-state.test.tsimmediately before the failing rail file in the same reused unit-worker slot; Preview tests run later. The lightbox fixture can leave a lazy import that registersopenclaw-modal-dialogpending at teardown. The active #179576 change moves that fixture and waits forvi.dynamicImportSettled()after unmount; it is a named prerequisite under investigation, not an inherited-failure waiver. This branch will consume that repair through officialmainwhen available.The old
4543CI run completed with 31 successful jobs, 27 skipped and 7 failures (6 UI shards plus the aggregate gate). Its 12 failing case names were compared with completed scheduled main39654415683: 11 names and primary errors matched; the Retry140 case passed that latest main and therefore received no older-main waiver. This branch merges official main, including the landed Retry140 fix (#179803 /86f66e5d3200), to resolve that gap. No Preview code changed during the integration, and the PR diff remains confined to its original 9 paths. The current exact-head verdict and its held unit failure are recorded above.Size and Solid 2 checklist
Production LOC across the five touched production paths: 1,367 → 1,412 (+45). This repair adds 11 production lines over the earlier head. The growth provides native boundary markup, completion receipts and stable request keys; redundant loading/error presentation fields, one registration wrapper and the element declaration are removed. Plugin preview test LOC: 148 → 243.
onCleanupcreateComponentThe remaining Claws catalog read and disposal lifecycle belong to separate coordinated work. The modal's remaining
onCleanupis tied to a reactive row registration. No effects, untrack, direct DOM listeners/queries, flush calls or feature owner APIs were added. Domain ownership, cancellation and mutation behavior remain unchanged.Screenshots
The final repair pair shows the same deferred request after following the Configuration Markdown link. Before: the request is admitted but the previous entry remains selected and no skeleton appears. After: config.md is selected, one document skeleton appears, and the inventory remains available. Both full captures were inspected; synthetic data only.
The original four pairs below are byte-identical and retain the earlier candidate’s visual evidence. Each unique full capture was inspected, and every before/after file hash was verified. Synthetic data only.