Repository navigation
refactor(ui): present provider mutations with Solid actions - #179882
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. |
…-s2-provider-actions
|
Codex review: needs maintainer review before merge. What this changesThis PR adds scoped Solid action presentation for provider API-key changes, model defaults, and confirmed logout. Example: Save an OpenAI API key while its request is pending.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed refactor preserves mutation ownership, and no actionable introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherModels settings translates user interactions into existing configuration and credential-owner operations; Solid presents saving state and accepted snapshots without becoming write authority. flowchart LR
A[Models settings] --> B[Plain mutation owners]
B --> C[Gateway RPC]
C --> D[Accepted configuration and auth facts]
B --> E[Scoped Solid actions]
D --> E
E --> A
Technical reviewBest possible solution: Retain the scoped presentation adapters while keeping admission, confirmation, persistence, and write settlement in the existing owners. Do we have a high-confidence way to reproduce the issue? This is a presentation refactor; source inspection and supplied held-operation captures establish its intended path without a new bug reproduction. Is this the best way to solve the issue? The implementation follows the existing Solid action recipe, preserves synchronous mutation authority, and keeps saving dependencies outside aggregate page props. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ce009c218d71. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +318, Tests +190. Total +508 across 13 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, 6:10 PM ET / 22:10 UTC. |
|
Merged via squash.
|
…#179882) * refactor(ui): present provider mutations with Solid actions * refactor(ui): simplify provider busy predicates * test(ui): complete provider gateway replacement context * test(ui): match current session sharing heading * test(ui): align sharing readiness with canonical access label * test(ui): wait for lazy session section attachment
The merged-only whole-scope census is source-qualified at official main
4611232730583082f5c49bd79f1f68dfbfbd1b60: 171 production files / 37,753 physical LOC, 41 pending items. Detection, Suggested Profiles, and Installed Agents are adopted; unmerged candidates receive no credit. Cron belongs to the recipes lane. Each PR’s exact paired-build base is reported separately below.This candidate adopts three of the five pending Provider mutation families: API key, defaults, and logout, moving Providers from 2 adopted / 5 pending / 1 exception to 5 / 2 / 1.
What Problem This Solves
Provider API-key saves/removals, default-model changes, and confirmed logout currently expose the plain owners' busy facts directly. This change presents those admitted operations with Solid generator actions and optimistic saving flags, declares server-changed auth/config reads with
affects, and reconciles the actual derivations withrefresh.The existing plain TypeScript owners keep synchronous admission, authorization, confirmation, write settlement, error messages, and Gateway reconciliation. Connection, agent, route, and disposal changes retire only the old presentation; they do not cancel an admitted write. Saving flags are passed separately after aggregate props so unrelated route/form updates remain independent. Config operations move intact into a focused module to keep the controller within its size limit.
Profile order/Reset is an intentional item-4 exception: the owner coalesces durable desired order across paused admission and rejected writes, and keeps committed Reset intent visible through reconciliation. Transient optimistic retirement would discard that contract. No new dependency or boot import is added.
Evidence
Current head:
ef16939d263bfcef0be1b4b443b8b3aa668b9095; actual integrated base:317f9399d9b0c4e410b7a4d4f8cc9649c015be34.ci:fullpassed: 39718957958The integration resolved a real conflict in a shared E2E comment by retaining official main. The two earlier shared E2E fixes are absorbed by main and absent from this PR. Its remaining nine production and four test files are byte-identical to reviewed
ec13bc4.Production LOC across nine touched files: 2,961 → 3,279 (+318). The controller shrinks 720 → 692. Growth supplies scoped action presentation while preserving plain owner settlement: two actions, one optimistic signal, two optimistic stores, three
affects, tworefreshcallsites, and five added memos. Effects remain 2; render effects, untrack, DOM listeners/queries, flush and root escapes remain 0. No dependency is added.Matched production budgets
Both builds use Node 24.22.0, pnpm 12.12.1, Vite 8.3.4, Pako 3.0.2, Solid rc.16, fixed synthetic metadata, all seven identical build-input hashes, and complete identical manifests/assets for
clawrouter,mcp-relay,memory-core,nostr,whatsapp,workboard, andx. Qualified generated plugin declarations/assets were aligned through the canonical build owner before both builds. Every seal and emitted-file hash/size is verified. The first base build stopped before transforms on stale generated declarations; the aligned base build passed.The base exceeds the 325,000 B startup cap; +7 B stays within the campaign's 64 B allowance. Routes and locales remain below their caps. Both strict checks pass; no budget, baseline, or lazy boundary changes. This exact 317/ef169 pair supersedes historical bundle measurements.
Retained failure evidence
The original local timeout in
refreshes uncertain status after a committed Resetremains recorded. A focused replay passed; exact-base attempts stopped during setup, so no inherited-failure claim applies. The current canonical single-file attempt also stopped in setup before assertions. New full CI passed; no admin or inherited waiver is claimed.Earlier full CI identified two incomplete gateway-source fixtures; adding their required real router fixed the complete 12-test file. Later shared heading and hidden Session-section readiness failures were corrected with their assertions preserved, then absorbed by official main. The final pre-integration full CI passed every UI unit, browser, real-Gateway, performance, i18n, type, lint, and security shard. Those prior results remain historical evidence rather than proof of this new head.
Synthetic visual comparison
The same held API-key, default-thinking, and logout states are shown below. All six 1100×900 captures were inspected and contain synthetic data only, with no page errors. The API-key pair is byte-identical. The capture driver uses Node for Playwright/Vite; unit proof uses pinned Bun. Production file blobs remain unchanged since the qualified captures, so no new screenshot run is needed.