Repository navigation
fix(ui): keep widget errors scoped to their action target - #180751
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 scopes dashboard action failures to their original widget binding and renders widget errors through narrow Solid boundaries. Example: A removal starts for widget alpha, its instance changes to replacement-instance, and the old removal rejects.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a current widget-feedback bug, preserves established interaction contracts, and has no concrete introduced defect identified. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherChat pin buttons and dashboard cells invoke existing board operations; completion promises feed local feedback while board providers retain mutation authority and authoritative snapshots. flowchart TD
A[Widget controls] --> B[Existing board operations]
B --> C[Completion promise]
C --> D[Current widget binding check]
D --> E[Narrow error boundary]
B --> F[Board snapshot owner]
F --> A
Technical reviewBest possible solution: Keep feedback with the existing widget binding and observe rejected completions in narrow presentation boundaries without changing board mutation ownership. Do we have a high-confidence way to reproduce the issue? Current main permits a pending widget operation to reject after its binding changes and publish into the successor; the added component regression exercises that sequence, but no reproduction was run during this read-only review. Is this the best way to solve the issue? The repair uses the existing binding owner, preserves its reset semantics, and follows the repository's local-error recipe without adding another mutation path or domain owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 287b38a78d2f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +42, Tests +68. Total +110 across 4 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 22, 2026, 12:10 PM ET / 16:10 UTC. |
|
Merged via squash.
|
…80751) * fix(ui): route widget action failures through Solid boundaries * test(ui): match widget toast spy return type
What Problem This Solves
A failed dashboard-widget command can publish its error into a replacement widget. Widget action feedback also keeps separate mutable error flags after the Solid 2 migration.
User Impact
Widget failures remain attached to their action target. Pin and dashboard controls retain their identity, busy feedback, retry behavior, and existing error copy.
Why This Change Was Made
Retain rejected completion promises and render their failures through narrow Solid error boundaries. Pin uses a boolean-only boundary for its native title; its optimistic label remains outside that boundary. Dashboard cells keep their existing synchronous admission and manual pending state because observing a pending receipt holds busy updates across their shared bridge roots. Only settled failures enter the cell's error slot, after checking its current widget binding.
Evidence
0a82b0c3d130b3e8bfb61db23f7ad20f9a775882(2m 14.9s); main removed the two previously reported unused filesThe measured pre-integration comparison (
bbdbd1c3a28955978fe1dbfe9c7477e33a292993→eaf20cbce12e810f8d208a9c138f08baa9ffd37a, whose four patch files are unchanged on the integrated head) has startup JavaScript 317,335 → 317,331 B gzip; startup CSS remains one request at 40,939 B. Chat boot is 1,440,302 → 1,440,312 B and new-chat boot is 1,017,375 → 1,017,377 B, both within the 64 B build-variance allowance. Lazy boundaries are unchanged.Production LOC: 768 → 810 (+42). Test LOC: 1,187 → 1,255 (+68). The production growth replaces two mutable error copies with promise receipts and narrow error slots; no domain owner, RPC, dependency, or startup import is added.
Recipe and refactor counts for the two changed production files
affects,isPending,latest, SolidLoading on,RevealLoadingis not Solid's boundaryloadingValueThe initial Board test run used two
updateCompleteticks and missed the new asynchronous error read. The final test waits for the observable error withwaitForSolid; immediate busy, duplicate-admission, retry-clear, identity, and stale-binding assertions remain intact.The first full CI run exposed a test-only TypeScript mismatch: the new toast spy returned
voidwhileshowToastreturnsboolean. Commit743b0f63fa37dbc009ef8dbf7af7c11e06ee17fbfixes that return. The exact chat test-type leaf passes, and the isolated repair review found no actionable issues. Production and screenshot inputs are unchanged. Replacement full CI run 39813450564 passed type checks but failed two assertions:Control UI Details panel navigation > opens Files from View all and dismisses Details in Chat and Dashboard: waiting for the workspace side panel after View all timed out. The exact case passed locally on retained earlier main48b7b4e6c2836891339d977bc939ce651946d891(3.007 s) and this PR's prior head743b0f63fa37dbc009ef8dbf7af7c11e06ee17fb(2.916 s). Main's focused fixture repair #180699, commit30a24bee8576b47b0d01c441ceafd509b8660e9f, waits for the visible conversation transcript before opening Details; it passed full CI. This branch merges main to include that readiness correction.Delegated task PRs through a real Gateway > shows three persisted descendant PRs while keeping the parent branch unpublished: persisted receipts lacked nestedpullRequestenrichment after an acknowledged foreground subscription. The exact case passed locally on retained earlier main48b7b4e6c2836891339d977bc939ce651946d891(93.362 s). Its CI cause remains unexplained.These passes are diagnostic; neither failure is classified as inherited. No assertion, timeout, or retry was weakened. The merge integrates
d2c70ddbf19fc201bbdd4c4c9373cb03ab4d1324without changing this PR's four-file patch or dependencies. Prior production, focused unit, performance, screenshot, and independent review evidence is reused for that identical patch. Fresh full CI 39819301112 on integrated head0a82b0c3d130b3e8bfb61db23f7ad20f9a775882completed successfully, including all Control UI unit/E2E and real-Gateway shards. No inherited-failure or admin exception is needed for recovery of the cancelled auto-merge request. Production Knip was rerun because its previous failure inputs changed; it passes.