Skip to content

refactor(ui): present provider mutations with Solid actions - #179882

Merged
steipete merged 9 commits into
mainfrom
solid2/w-s2-provider-actions
Oct 22, 2026
Merged

steipete merged 9 commits into
mainfrom
solid2/w-s2-provider-actions

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor
Wave-ten item New Session Model Providers Model Setup Channels Skills
1. Frozen intrinsic handlers 0 0 0 0 0
2. Component cleanup pending / allowed reactive or immediate 1 / 2 2 / 0 1 / 1 3 / 0 0 / 0
3. Original ordinary read families: adopted / pending / excepted 7 / 2 / 0 5 / 3 / 0 1 / 1 / 1 2 / 0 / 3 2 / 5 / 0
4. Mutation families: adopted / pending / excepted 3 / 3 / 0 2 / 5 / 1 0 / 2 / 0 0 / 4 / 0 0 / 8 / 0
5. Manual signal-based component loaders 0 0 0 0 0
6. Copied editable collections / unkeyed interactive lists 0 / 0 0 / 0 0 / 0 1 / 0 0 / 0
7. Handwritten createComponent 0 0 0 0 0
8. Throw-only context wrappers 0 0 0 0 0
9. Uncoordinated sibling Loading groups / exception 0; preview/composer independent 0; usage/cost separate retries/pacing 0 0 0
10. Escaped owner APIs 0 0 0 0 0
Production files / physical LOC 99 / 19330 22 / 6910 22 / 4879 14 / 3158 14 / 3476

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 with refresh.

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.

Check Result
Frozen install and UI typecheck, tsrs Passed after official-main integration
Canonical pinned-Bun action test, one worker Started, then the 120-second no-progress watchdog ended setup before assertions; no runtime verdict is claimed
Earlier directly coupled tests Action/retirement 6/6, profile lifecycle 15/15, gateway source replacement 12/12 passed; not labeled new-head CI
Production Knip Same 13 unused heartbeat files on exact base and candidate; no UI finding or new ignore
Independent review through P2 Integrated candidate scoped-clean; final source integrity verified. All 13 authored file blobs match the previously reviewed head
Configured commit hooks Normal merge commit completed successfully, without a hook override
Ordinary production builds and strict budgets Both pass with identical complete seven-plugin inventory and build inputs
Full CI Exact integrated-head ci:full passed: 39718957958
Visual proof Six inspected synthetic frames, reused for unchanged production blobs

The 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.

Touched-file checklist Before After
1. Frozen intrinsic handlers 0 0
2. Component cleanup sites 0 0
3. Ordinary read families unchanged unchanged
4. API-key, defaults, logout mutation families 3 manual presentations 3 native action presentations
5. Manual component loaders 0 0
6. Copied editable collections 0 0
7. Handwritten createComponent 0 0
8. Throw-only context wrappers 0 0
9. Uncoordinated sibling loading groups 0 0
10. Escaped owner APIs 0 0

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, two refresh callsites, 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, and x. 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.

Surface Exact base gzip Current head gzip Delta Requests
Startup JS 325,461 B 325,468 B +7 B 9 → 9
Startup CSS 40,904 B 40,904 B 0 B 1 → 1
Chat boot JS 1,442,366 B 1,442,379 B +13 B 27 → 27
New Session boot JS 1,020,183 B 1,020,184 B +1 B 22 → 22
All 42 locale assets matched set matched set 0 to +3 B each unchanged

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 Reset remains 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.

Before: held API-key save

After: held API-key save

Before: held default-thinking save

After: held default-thinking save

Before: held confirmed logout

After: held confirmed logout

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T03:53:53.327767Z ef16939 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 21, 2026
@clawsweeper clawsweeper Bot removed the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 21, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The existing owner directly supplies the disabled input and Saving state.
  • After: Solid presents the same saving state while the existing owner admits, settles, and reconciles the write.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is coherent and preserves existing ownership; inspected behavioral evidence is synthetic presentation coverage.
Proof confidence 🦐 gold shrimp (3/6) Maintainer-authored PR exemption applies; inspected synthetic browser captures show API-key and defaults saving parity, supported by owner-boundary tests, while logout media inspection was limited by the read-only scratch mount.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Models settings must preserve saving feedback, drafts, confirmation, and scope retirement while adopting native Solid actions.
Reason: The maintainer-authored direction adopts three bounded mutation families while explicitly retaining the durable profile-order owner.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-directed refactor preserves mutation ownership, and no actionable introduced defect was found.

Priority: P3
Reviewed head: a9b15a6df96a259f1283331e68ec7afe6a22fa93

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The inspected synthetic captures cover held presentation states rather than live Gateway settlement; the maintainer-authored proof exemption applies.
Agent review details

How this fits together

Models 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
Loading

Technical review

Best 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

  • Credential mutation and configuration settlement keeps the original intent (09e2b15: Share credential editing, removal, persistence, and recovery between Models and CLI.)
  • Reconnect and rejected-default draft behavior keeps the original intent (d6a7e3d: Display saved defaults after rejected writes while preserving retry intent and undispatched drafts.)
  • Solid rendering and plain owner separation keeps the original intent (18cd308: Move rendering to Solid factories while preserving synchronous request admission, epochs, drafts, and queues.)
  • Account confirmation and durable ordering keeps the original intent (a81368f: Manage individual accounts, confirmed logout, and saved account priority from Models settings.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 18cd308 adds ui/src/pages/model-providers/profile-actions-controller.ts:143 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 18cd3088f476; files: ui/src/pages/model-providers/profile-actions-controller.ts)
  • Ayaan Zaidi: Raw commit 09e2b15 adds ui/src/pages/model-providers/profile-actions-controller.ts:89 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 09e2b15466e1; files: ui/src/pages/model-providers/profile-actions-controller.ts)
  • Jesse Merhi: Raw commit a81368f adds ui/src/pages/model-providers/profile-actions-controller.ts:67 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a81368f6b1c2; files: ui/src/pages/model-providers/profile-actions-controller.ts)

PR surface

Source +318, Tests +190. Total +508 across 13 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 9 429 111 +318
Tests 4 190 0 +190
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 619 111 +508

Review metrics

Metric Value Why it matters
Production versus test growth Production +318 net lines; tests/support +190 net lines Production growth implements the approved scoped action presentation and extracts existing operations; tests exercise held writes, rejection, retry, and retirement.

Labels

Label changes:

  • add P3: This is a behavior-preserving UI refactor with no established urgent user-facing regression.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a behavior-preserving UI refactor with no established urgent user-facing regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 21, 2026, 6:10 PM ET / 22:10 UTC.

@steipete
steipete merged commit a90fc1e into main Oct 22, 2026
107 of 109 checks passed
@steipete
steipete deleted the solid2/w-s2-provider-actions branch October 22, 2026 04:34
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant