Repository navigation
refactor(ui): use native async Debug boundaries - #180409
Conversation
Use lazy, Loading, and Errored for System busyness imports and independent section presentation while retaining request authority, cancellation, replay, and polling history. Cover both initial and settled polling independence, including deferred status samples while active-run data stays pending.
|
🦞👀 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 manual Debug readiness records with independent Solid async boundaries and optimistic retry presentation. Example: An active-run refresh stays pending while CPU samples advance from 0.10 to 0.40 cores.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is ready for normal landing consideration: no actionable defects were found, and both earlier blockers are resolved. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI Debug overlay reads Gateway diagnostics through existing polling owners and renders expanded sections or a compact live widget. flowchart LR
A[Gateway diagnostics] --> B[Polling and connection owner]
B --> C[Admitted descriptor promises]
C --> D[Solid async boundaries]
D --> E[Expanded sections]
D --> F[Compact widget]
Technical reviewBest possible solution: Adopt the native presentation boundaries while retaining the existing polling, connection, and recovery owners. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than a reported bug; supplied production-browser captures and focused tests exercise the preserved behavior. Is this the best way to solve the issue? The change follows the repository's admitted-promise recipe, removes the manual readiness record, and preserves independent sections without unnecessary replacement machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d08aeb1d984a. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +56, Tests +28. Total +84 across 3 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 HistoryReview history (1 earlier review cycle)
Reviewed October 22, 2026, 4:22 AM ET / 08:22 UTC (Revision 2). |
|
The superseded duplicate-head PR #179755 is closed. Full CI run 39740900093 attempt 2 and the dependency/security gates now pass. The initial Details timeout, both exact targeted replays, and the single supported retry are documented in the updated evidence section. No source changed. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
Use lazy, Loading, and Errored for System busyness imports and independent section presentation while retaining request authority, cancellation, replay, and polling history. Cover both initial and settled polling independence, including deferred status samples while active-run data stays pending.
Solid 2 checklist
Counts cover the two touched production files against official main
955669d69147.onCleanup0 → 0;onSettled4 → 4SectionStaterecord 1 → 0; async memo call sites 0 → 2;Loading/Errored1 → 3 eachaction/createOptimistic0 → 1 each; import-loaded flag 1 → 0lazy1 → 1; the existing deferred content import remains deferredcreateComponent0 → 0Reveal0 → 0 so pending active runs do not hold vitals or eventscreateRoot/getOwner/runWithOwner0 → 0What Problem This Solves
The Debug overlay mirrored descriptor reads into manual loading/ready/error records. It now consumes the admitted descriptor promises through Solid async memos and independent loading/error boundaries. The plain polling owner still controls request admission, permissions, cancellation, connection epochs, and polling cadence. Reconnects hide retired samples; ordinary refreshes retain settled content and the 90-sample history store.
The lazy import remains behind the existing overlay boundary. Its retry uses an optimistic action for the loading affordance while preserving stale-chunk recovery, persisted replay, and dismissal cancellation.
Supersedes the now-closed #179755. Its retained native workflow is pinned to state schema 30, while shared landing state uses schema 31. This replacement preserves the reviewed three-file contribution and uses the current native workflow; no binding or shared state was changed.
Evidence
pnpm tsgo:uipassed on9354dfc3c178--maxWorkers=1, pinned Bun955669d69147All differences are below the 64 B build-variance allowance. Startup stays at 7 JS requests and 1 CSS request; CSS bytes and all request counts are unchanged. Same machine, Node 24.22.1, pnpm 12.15.0, fixed build timestamp/options, and compile cache disabled on both sides.
Production LOC: 461 → 517 (+56); the new section/compact fallbacks preserve headings, accessible loading state, and existing unavailable presentation. Tests add 28 lines. Total contribution: 3 files, +219/−135. No dependency changes.
The focused production capture uses Node because it launches Playwright; unit tests use the pinned Bun fork. Existing stale-chunk recovery tests passed on the earlier head with identical retry code; full current-head UI coverage passed through
ci:full.The first full CI attempt had one timeout in Details → View all opening Files. The exact named case passed once on both the merge base and this head, with the original test and timeout unchanged; one supported failed-job rerun then passed. The original failure is retained as attempt 1, not classified as inherited. The targeted browser replay used Node because it launches Playwright.
Screenshots
All six complete frames were inspected and contain only synthetic fixture data.