Repository navigation
refactor(ui): scope MCP operation error feedback - #180635
Conversation
Observe admitted onboarding, settings, and context-removal outcomes through narrow Solid error boundaries. Retain controls and drafts, clear errors on retry or target retirement, and keep owner admission and reconciliation unchanged.
|
🦞👀 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 replaces renderer-local MCP error strings with scoped Solid error boundaries for onboarding, settings operations, and context removal. Example: Context removal fails in session agent:main:one, then the user opens agent:main:two.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: the scoped feedback change is useful and maintainer-directed, but concurrent context removals can now silently lose a failure. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI components admit MCP operations through existing Gateway clients and owners, then render their outcomes beside retained controls, settings drafts, and attached context. flowchart LR
A[User controls] --> B[Existing operation admission]
B --> C[Gateway MCP requests]
C --> D[Owner reconciliation]
C --> E[Scoped outcome receipts]
E --> F[Solid error slots]
D --> G[Retained app content]
Technical reviewBest possible solution: Keep scoped error boundaries while preserving an observable outcome for each independently removable app view. Do we have a high-confidence way to reproduce the issue? Source establishes both current-main stale feedback and the introduced concurrent-removal failure path; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? Narrow keyed boundaries fit the existing ownership model, but a single removal receipt cannot represent the independently admitted operations already supported by the strip. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3f2d28fa4f6e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +75, Tests +84. Total +159 across 6 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, 9:28 AM ET / 13:28 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Observe admitted onboarding, settings, and context-removal outcomes through narrow Solid error boundaries. Retain controls and drafts, clear errors on retry or target retirement, and keep owner admission and reconciliation unchanged.
What Problem This Solves
MCP app onboarding, settings mutations, and context removal copied failed operations into renderer-local error strings. Those strings could outlive their target and did not use the Solid 2 outcome recipe.
User Impact
Errors still appear beside the existing controls, edited settings and attached context. A retry clears its previous failure; moving to another target retires the old feedback. The Gateway and existing plain owners continue to decide admission, execution and reconciliation.
Why This Change Was Made
Each renderer observes an admitted promise in a narrow, keyed
Erroredslot. Only the alert slot changes on a new attempt, preserving form and app content. Optimistic busy state remains independent. Synchronous disconnected/mount failures keep their user-facing text. Onboarding navigation stays after action settlement so it sees the current destination.Evidence
ci:full; two attributed baseline failures, all other jobs passed or skippedProduction LOC: 967 → 1,042 (+75); tests +84 lines. Renderer error signals: 3 → 0; scoped outcome slots: 0 → 3;
Errored: 1 → 4. Actions (3), optimistic flags (2), optimistic store (1),Loadingboundaries (3), effects (1) anduntrackcalls (2) are unchanged. The added lines bind errors to the admitted target and keep their retry boundaries separate from retained controls. No dependencies, domain owners or eager imports were added.Before / after
Both captures use synthetic app data, actual components and production CSS. Failed onboarding, settings save and context removal preserve the same UI.
Exact-head CI attribution
CI run 39784492579 completed on
f152336ac8c59f37486814aa9abadb7c9d5e821d. All 62 other jobs passed or were skipped, includingsecurity-fast; two inherited roots remain failed and feed the CI gate:checks-ui-e2e (5/9):Control UI Workboard routing > routes, pins, persists, and normalizes Workboard boardswaits for the old Workboard heading at line 156. Main changed it to All boards in fix(workboard): title the unfiltered Workboard page as All boards #174430. The exact case reproduces on clean protected maind5ce64b7e2d2; its test, heading owner and English strings are identical to this run’s base8f195e6a4239.check-test-types-core-4:sessions-patch.test.tslines 500, 507 and 513 report TS2353 becausepatchis absent fromPatchFixture. The same three diagnostics reproduce on clean protected main; failed source and core typecheck inputs match this run’s base.The native inherited-failure recovery preserves these failed results and their baseline evidence. No CI retry or passing-CI claim is used.