Repository navigation
refactor(ui): load bundled Logbook with Solid boundaries - #179332
Conversation
Replace manual bundled-view import state with a descriptor-scoped lazy component. Keep Gateway epochs as the model remount boundary and leave frame authentication authoritative in PluginPageOwner. Preserve retry and stale-chunk recovery while retiring obsolete import outcomes. The native error boundary retains its current error until a retry commits.
|
🦞👀 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 Logbook’s manual import state machine with Solid lazy loading and error boundaries. Example: A Logbook import fails with “Logbook chunk failed” and the user clicks Retry.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a useful, maintainer-directed simplification with no actionable introduced defect found; CI still needs disposition. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI plugin page receives route props and Gateway tab descriptors, selects native, bundled, or iframe rendering, and mounts Logbook with a client fixed to the current connection lifetime. flowchart TD
A[Plugin route] --> B[PluginPageOwner]
C[Gateway descriptors and connection] --> B
B --> D[PluginPage rendering]
D --> E[Solid lazy loading and error boundary]
E --> F[Logbook model]
D --> G[Authenticated external iframe]
Technical reviewBest possible solution: Keep module readiness in Solid while the existing page owner retains descriptor, connection, and external-frame authority. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor; source inspection and supplied browser evidence establish the affected path without requiring a new bug reproduction. Is this the best way to solve the issue? The change uses Solid’s existing readiness and retry owners, removes the superseded loader completely, and preserves the separate connection and frame-auth responsibilities. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e3fbdbc7e238. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -47, Tests +53. Total +6 across 3 files. Added test files: 0. 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:59 AM ET / 09:59 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…9332) * refactor(ui): use native Solid loading for Logbook Replace manual bundled-view import state with a descriptor-scoped lazy component. Keep Gateway epochs as the model remount boundary and leave frame authentication authoritative in PluginPageOwner. Preserve retry and stale-chunk recovery while retiring obsolete import outcomes. The native error boundary retains its current error until a retry commits. * test(ui): document Logbook loader fixture isolation
The bundled Logbook page used a manual import registry and idle/loading/error/ready state machine. A per-mounted native Solid lazy component now owns module readiness under Loading and Errored; the plain page owner still owns descriptor identity, Gateway epochs, and external-frame authentication/probe lifecycles.
Reconnect remounts the Logbook model without reloading its module. Retiring the descriptor retires import/error recovery. Stale-chunk handling remains attached to the current error and retries against current owner authority. The production test-only registry seam is removed, and no effect was added.
Proof
The old registry mock allowed two independently settling imports for one module URL, which real import() shares. Its replacement rejects the retired import while away, verifies no recovery and unchanged successor descriptor, then re-enters after settlement. A classifier stub interprets Vitest’s wrapped import error; native boundary/retry lifetimes remain real. No resetModules or replacement production test seam was added.
Paired production measurements
Both builds ran on the same machine. Raw startup/chat/New JavaScript bytes, CSS, and request counts are identical; gzip differences are within 64 B build variance. Both strict checks fail only the existing 325,476 B absolute startup ceiling. No budget/baseline or chunk boundary changed.
Locale deltas range −2 to +4 B. Production LOC 765 → 718 (−47); tests 595 → 649 (+54). The removed manual loader/state machine accounts for the production reduction.
Solid 2 checklist
Effects 1 → 1; render effects/untrack/DOM queries/flush 0 → 0. One direct Gateway subscription remains for synchronous retirement of owner facts.
Inspected synthetic screenshots
CI fixture correction
Run 39578248212 caught an unnecessary default type argument and missing isolation rationale in the controlled lazy-import fixture. The fixture now uses the helper's default type and documents why loading the real module would defeat its import-settlement/failure test. All 16 tests in the touched file, canonical UI-page test types, typed lint, formatting, the exact-base mock-export guard, and independent scoped review pass. Production code is unchanged, so the paired build, bundle, Knip and screenshot evidence above remains applicable. Test LOC is 595 → 649 (+54).
Replacement run 39584207681, attempt 1, tested head
04fd96dd59eb206cfb644be2e2651f8e0eba9bae. The fixture failures are gone. Exactly two non-aggregate jobs remain red, both matching scheduled main run 39585413125 by exact test name and assertion:chat-markdown-table-interactions.e2e.test.ts:214:38, expected false to be true; PR job 119169501333 and main job 119173206453control-ui-automation-management.real-gateway.e2e.test.ts:308:7, first reply timed out after 60,000 ms with inbound-message/outbound-message events; PR job 119169500639 and main job 119173206448The CI gate is downstream of those two jobs. The native inherited-failure route will retain the failed result and verify the recorded checkout, source equality, security, and review requirements; no failed CI is reported as green.