Repository navigation
refactor(ui): use native Solid plugin reload and async state - #179221
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 maintainer review before merge. What this changesThis PR replaces manual plugin reload and dashboard import state with native Solid primitives and preserves lazy chunk boundaries. Example: Reload plugin UI fails with “Synthetic reload failure”.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed refactor removes manual async bookkeeping while preserving existing owners and controls; no concrete introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI views consume the plugin runtime and board provider, translating reload requests and lazy module results into pending, error, retry, and board presentations. flowchart LR
A[Plugin settings] --> B[Solid reload action]
B --> C[Plugin runtime]
C --> D[Gateway]
E[Session dashboard] --> F[Async BoardView import]
F --> G[Loading and error boundaries]
G --> H[Board presentation]
Technical reviewBest possible solution: Retain the focused native-primitive conversion with the existing runtime authority, provider leases, retry presentation, and lazy boundaries. Do we have a high-confidence way to reproduce the issue? This PR proposes a behavior-preserving refactor rather than a reported upstream failure; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The change follows the pinned Solid contract, removes the superseded state paths, and keeps mutation and provider decisions with existing owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 74201376f97d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests +12. Total +13 across 6 files. Added test files: 0. View PR surface stats
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, 4:49 AM ET / 08:49 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…w#179221) * refactor(ui): use Solid async state for plugin views * build(ui): isolate Solid action initializers from route chunks * fix(ui): preserve retry and pane activation behavior
What Problem This Solves
Plugin UI reloads still manage a separate busy flag around an asynchronous mutation. The session dashboard packs its lazy BoardView import and error into one result and uses a retry counter to refetch it.
User Impact
Preserve the existing reload button, disabled pending state, persistent inline failure and retry behavior. The dashboard keeps its existing loading, error and retry UI, including import timing while empty or collapsed. Provider leases, permissions, selected tabs and presentation state retain their existing owners.
Why This Change Was Made
Use a Solid action with a co-written optimistic busy value for reload, while the plugin runtime remains the mutation authority. Derive old-error visibility from pending state so a retry clears the previous error immediately. Use an async memo and native Errored reset for the dashboard module read; remove its packed result and retry counter. Derive retry-error visibility with
isPendingso a pending retry keeps the previous blank loading presentation.The new action/optimistic engine initializers require an explicit small runtime chunk. Without it, their eager initialization pulls either the lazy Plugins page or the shared route boot group into startup. The generated boot map and exact stable chunk assignments preserve the Plugins route boundary without regrouping other libraries. Main already isolates the action initializer; this change adds the optimistic lane and pending-read initializers to that same runtime chunk.
View production LOC: 368 → 363 (−5). The chunking configuration adds two initializer cases and a short explanation. No dependency or configuration option added.
Evidence
pnpm tsgo:uipnpm deadcode:knipci:fullrun 39569225275 completed: 35 jobs passed, including all UI unit/type/lint jobs, both real-Gateway shards and the corrected pane-header case (5309 ms). Its sole failing table-width case exactly matches newest completed scheduled main run 39570916649, confirmed at 09:08 UTC.a6b339e1c4d68d0aa41f4caThe 1,419 B gzip increase is the native Solid optimistic and pending-read engine on the merged baseline; it stays in the existing runtime request. Startup remains below the migration's original 374,285 B ceiling. Both revisions exceed the current stricter absolute cap; no budget or baseline is changed. Earlier intermediate builds that accidentally loaded unrelated chunks are not claimed as passing proof.
Solid 2 checklist
Counts cover the two touched production views.
createSignal4 → 2; persistent inline error and presentation writable derivation remainEffects 0 → 0; memos 6 → 6. The provider lease remains tied to its reactive resource computation. No parallel runtime store, new authority owner or manual pending/error resource wrapper is added.
CI attribution and correction
The final run’s sole substantive failure is
chat-markdown-table-interactions.e2e.test.ts > Control UI Markdown table interactions > contains content-sized tables after restoring a percentage reading width(job 119119403256, assertion at 214:38). The exact name and assertion also fail on completed scheduled main 39563487228, job 119100314952. Native inherited-failure evidence retains the failed gate and verified CI merge tree. The prior chat-panel-layout and CI-planner type failures are absent from the final run and are not part of this exception.The pane-header failure was different: a Session information hovercard intercepted the test’s fixed pane-relative coordinate. The browser intentionally keeps the card open while hovered, so retrying that coordinate sustained the obstruction. The test now clicks each pane’s composer to exercise its real pointer/focus activation owner and retains all header, active-pane and emphasis assertions. No forced action, synthetic event dispatch, production hovercard change, or suppression was added.
Final CI attribution: replacement head
8d0aa41f4cahas one inherited failure,chat-markdown-table-interactions.e2e.test.ts > contains content-sized tables after restoring a percentage reading width, with the same assertion at 214:38 in newest completed scheduled main run 39570916649. The corrected pane-header case, all types and UI unit shards, both real-Gateway shards, lint, security, and performance passed.