Repository navigation
refactor(ui): render plugin details with native async readiness - #180389
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 presents plugin-detail request readiness through native Solid loading and error boundaries while retaining accepted content. Example: Inspection of the installed Workboard plugin fails.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this maintainer-backed refactor preserves the existing ownership model, but a missed browser-test consumer update causes confirmed CI failures. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI plugin page admits Gateway reads, retains accepted detail snapshots, and supplies request completion receipts to views that render loading, errors, and lifecycle controls. flowchart TD
A[Plugin route and inventory events] --> B[Plugins page owner]
B --> C[Detail loaders]
C --> D[Gateway client]
C --> E[Accepted snapshots]
C --> F[Read receipt adapter]
E --> G[Solid detail views]
F --> G
Technical reviewBest possible solution: Keep the existing loaders and native presentation adapter, and migrate the remaining browser fixture to the required receipt contract. Do we have a high-confidence way to reproduce the issue? The browser fixture omits the newly required inspectionRead prop, and exact-head Chromium and WebKit annotations confirm the resulting undefined-receipt failure; no target code was run during this review. Is this the best way to solve the issue? Observing existing admitted requests preserves one request owner and separate accepted content; the remaining repair belongs in the missed test consumer rather than a production compatibility fallback. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 11e719f398d8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +141, Tests +201. Total +342 across 11 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 22, 2026, 3:08 AM ET / 07:08 UTC. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c54d7fa8e6
ℹ️ 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".
| onClick={() => { | ||
| props.onRetry(); | ||
| reset(); | ||
| }} |
There was a problem hiding this comment.
Reset latched errors when automatic reads supersede them
After a catalog or inspection read enters this fallback, only this button calls reset(). Automatic retries already performed after a same-identity reconnect or plugin-generation refresh replace the receipt through showCatalogDetail/showDetails but never reset the Errored boundary, so even a successful newer request leaves the old error banner visible until the user manually starts another request. Reset or key the boundary when the admitted receipt changes; the same issue exists in PluginInspectionStatus.
AGENTS.md reference: ui/AGENTS.md:L14-L19
Useful? React with 👍 / 👎.
|
Merged via squash.
|
…claw#180389) * refactor(ui): use native readiness for plugin details * test(ui): await initial async outputs readiness * fix(ui): restore plugin detail focus after catalog refresh * fix(ui): retain plugin detail across snapshot refresh * test(ui): provide plugin inspection readiness fixture
Whole-scope production syntax census at
8b8291fed34662ece78fa6cb17d035de466bdf67→5dcdf6ea81ca66282ff37db253cf91e40503a08b. Counts describe syntax, not defects.Supersedes #180231. The reviewed Plugin detail readiness and progress fix are integrated with current main and the current native workflow.
What Problem This Solves
Installed-plugin inspection and selected catalog details now consume the completion of their existing admitted requests through Solid async reads under
LoadingandErrored. Loaders remain the sole owners of current selection, Gateway authority, and accepted snapshots. Optional tools/catalog enrichment still cannot block installed controls.The completion slot is separate from accepted editable content. Closing a detail, switching identity, or losing the connection retires its presentation immediately without waiting for transport. The two loader-owned error copies are removed; visible retry actions retry the request and reset the native error boundary. No new RPC, dependency, host, route, or eager import is introduced.
The selected full CI exposed a removal-focus ordering regression: the inventory refresh starts a separate catalog read, so its heading may not exist at the first settled callback. Removal now awaits the current admitted detail receipt before restoring focus; navigating away retires that wait and preserves the new selection. The regression failed on the real focus assertion before the repair and now passes for both completion and navigation. The final review also caught a same-plugin refresh replacing accepted controls with a loading skeleton: the loading key now follows accepted plugin identity, retaining the same live controls during revalidation. The new control-identity regression passes and fails with the original receipt-only key.
Two silent-sample exceptions remain: optional installed tools metadata and remote catalog enrichment. Consent inspection is already native on this base; config/schema remains separately assigned. No
isPendingorlatestprobe is needed for a slot whose resolved value is onlynull; accepted content already lives outside it.Evidence
[]ci:fullrun 39736373720 is in progress; all UI, Control UI E2E, browser-extension, and real-Gateway shards selectedProduction touched-file LOC: 2,239 → 2,377 (+138). The extra production code expresses two native boundaries and one shared presentation adapter while deleting both copied loader errors; request admission and accepted snapshots stay in the existing plain owner.
Synthetic before / after
Installed loading
Installed error
Catalog loading
Catalog error
Same-plugin refresh regression repair
Full CI exposed
plugin install button progress > keeps truthful progress through the final finalization-failure response: replacing the result object re-armedLoadingeven though its returned plugin ID stayed the same, which unmounted the progress view. The boundary now reads a memo of that ID. The existing regression fixture replaces the result object during the pending receipt.The strengthened unit test failed against the previous head and all nine catalog-detail tests pass with the fix. The exact failed E2E case also passes (one selected case; four unrelated cases filtered), and UI tsrs, typed lint, formatting, and independent P0–P2 review pass. This was a PR regression, not an inherited failure. A fresh production build's source map matches the repaired source.
The prior head's exact failed progress E2E case passed after the stable plugin-ID fix. Current integration has fresh 30-case unit proof; the new PR runs every UI shard. The eight inspected synthetic images remain representative.
CI fixture repair
Run 39736373720 failed
retains focused lifecycle controls across settings reads and uses current mutation statein Chromium and WebKit and its UI-pages type check. The browser fixture still passed the removedinspectionErrorprop and omitted the requiredinspectionRead; it now supplies the same resolved-empty read as the existing unit fixture. All focus-retention, disabled-control, and current-handler assertions remain. The exact UI-pages type graph and focused Chromium case pass locally. Independent P0–P2 review found no actionable issue in the one-line repair. Main was merged for the current fixture/tooling context; production changes in this follow-up are zero.