Repository navigation
refactor(ui): use Solid readiness for MCP app settings - #179906
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 292a552eef
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <Errored | ||
| fallback={(failure, reset) => ( | ||
| <> | ||
| <SettingsContent settings={null} pending={false} /> |
There was a problem hiding this comment.
Reset the error boundary from every visible retry
When the initial mcp.app.settings read rejects, this fallback renders SettingsContent with no settings, which leaves its toolbar “Settings” button visible. That button starts readSettings() but does not call the boundary's reset(), so even a successful response remains hidden behind the latched error fallback and the click has no visible outcome; only the separate “Try again” button works. Suppress the toolbar action in this fallback or wire it through the same reset path.
AGENTS.md reference: AGENTS.md:L73-L75
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR moves MCP settings readiness and mutation progress to Solid async boundaries and optimistic actions. Example: Save the parts app’s collection name from Library to Parts.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep this maintainer-authored PR open; the refactor has value, but it introduces a retained-app launch regression and a test-host type mismatch. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe chat workspace retains MCP app tabs; their panels send settings and launch requests through the existing Gateway client and render accepted settings or native app views. flowchart LR
Workspace[Chat workspace owner] --> Panel[MCP app panel]
Panel --> Gateway[Gateway client]
Gateway --> Server[MCP server]
Gateway --> Receipt[Settings receipt]
Receipt --> Boundary[Solid readiness boundary]
Panel --> View[Retained native app view]
Technical reviewBest possible solution: Retire optimistic busy presentation without discarding valid native-launch results for retained tabs, and remove unused required host fields or update their consumers. Do we have a high-confidence way to reproduce the issue? Source traces a pending native launch through tab-selection retirement to discarded publication, while retained rendering provides no restart on return; no target code was executed. Is this the best way to solve the issue? The readiness conversion follows the existing owner model, but presentation retirement must remain separate from accepting a still-valid native app result. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0e3aaad0c2e8. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +141, Tests +247. Total +388 across 12 files. Added test files: 1. 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:54 PM ET / 21:54 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* refactor(ui): use Solid readiness for MCP app settings * test(ui): complete MCP pane action fixtures
Whole assigned-scope census against
b3245a241c58c3015086d8505e9bbf11d83c3c35; unchanged cells apply to both base and candidate. Counts are syntax candidates, not unresolved defects. Optimistic counts combinecreateOptimisticandcreateOptimisticStore; async callbacks returning promises withoutasyncare described below. Existing open lane PRs retain their files.What Problem This Solves
The MCP app panel tracked settings readiness and operation progress manually. Settings now flow through an admitted promise receipt consumed by an async memo under
LoadingandErrored; an action and one optimistic busy value present mutation progress.User Impact
A replacement app keeps usable settings while an older save settles; loading and retry feedback retain their existing appearance.
Why This Change Was Made
Gateway request admission and accepted publication remain in the existing imperative owner. A synchronous workspace subscription retires the presentation when its launch is replaced, so a held old save cannot disable the successor or publish its late failure. This also publishes retained preview content replacements after the content changes. The actual write still finishes normally. Native app retirement stays outside settings readiness and errors, and the existing lazy import remains intact.
The memo returns the admitted promise without an
asynckeyword (one native async read, despite the syntax census showing zero async-keyword memos).latest()retains the edited form while a save reloads settings. The owner already performs update plus reload;affects()/refresh()would duplicate or couple that read, so no refresh machinery is added. Switching away from the workspace tab intentionally retires presentation.Evidence
onCleanup; 1 settled cleanuplatest,Loading,Errored)The whole-scope table excludes chat and the root MCP owner modules. The coupled chat files add one subscription to the existing workspace owner, no additional Solid state or root APIs. Panel
createSignalcount falls 5 → 4,untrackstays 2, andcreateEffectstays 1 for launching admitted work.Production LOC: 2,968 → 3,109 (+141) across seven files; panel 297 → 386 (+89). Test LOC: 2,299 → 2,549 (+250) across five files. Growth preserves held-request replacement and native-view lifetimes while separating read readiness from mutation presentation; no new dependency or owner is introduced.
ci:fullrequested; CI is broad proofLocal runs were limited to touched contracts. The first final settings run passed three cases; the fourth used a detached input after schema replacement. Requerying the live control preserved the form-retention assertion and passed the single failed case. The workspace fixture's first run failed setup (missing gateway argument); the corrected suite passed. The broad lint wrapper timed out generating unrelated extension declarations before lint; the canonical UI tsconfig run is recorded separately.
Synthetic before/after captures cover ready, pending read, and rejected save at the same viewport. No layout change; native app content remains outside the settings fallback. All captures were fully inspected; browser errors were empty.
CI follow-up: run 39676300347 found three MCP test fixtures missing
sidebarContentplus the shared boot-render-storm heading assertion. Commit8b639a792d67adds those three fixture fields; the exact chat test-type graph passes and independent review is clean. The boot failure now matches the exact test name andMessage permissionstimeout at line 233 on latest completed scheduled main 39687169253, job 119524443291. Replacement fullci:fullrun 39687093117, on exact head8b639a792d67b6a18ada82b12ee20c7a5986a98f, is complete. Its sole failing test is the same boot-render-storm case (job119524375687); all UI unit shards, remaining E2E shards, types, lint and performance pass. The fixture-only correction leaves production build and media inputs unchanged. Native inherited-failure landing uses the matching-name evidence for that one assertion.