Skip to content

refactor(ui): use Solid async feedback for provider reads - #179503

Merged
steipete merged 2 commits into
mainfrom
solid2/w-s2-providers-core
Oct 21, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-s2-providers-core

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Models settings used owner flags for pending and error feedback around its core auth/catalog refresh. Move that presentation to Solid 2 while preserving accepted provider cards, default-model controls, search and Retry identity.

The loader exposes one completion receipt for each admitted read and settles retired receipts immediately, even if transport abort is ignored. An always-mounted native readiness read observes pending and successful refreshes; isPending drives the existing Refresh and Retry affordances. A separate Loading/Errored slot presents the accepted error. Initial route loading stays with the router, and all admission, auth-before-catalog ordering and publication queues remain with the plain TypeScript owner.

The error slot also follows accepted-data rollback: a failed API-key refresh can return to the mutation warning without leaving duplicate page feedback. Roster and no-selectable-agent failures keep precedence.

Evidence

Proof Result
UI tsrs Final corrected head passed
Core recovery and mounted refresh/login tests Original 40/40 passed; four directly affected retention, revocation and pending-model cases passed after the correction
Targeted lint, formatting and diff checks Final seven-file checks passed
Production Knip Final head passed
Independent P0–P2 review One investigated and declined finding; no accepted actionable findings
Production builds and strict performance Both full production builds passed; exact-base comparison below
Synthetic built-route captures Four corrected-head states passed with no page errors; all full frames inspected, with original exact-base before frames retained
Full PR CI on e13e0b0d Both real-Gateway shards, performance and lint passed; two UI E2E failures match latest scheduled main; Agent scope reproduces on the exact CI main parent

The independent review proposed sharing core readiness with standalone catalog discovery. That is deliberately declined: on the exact base, standalone discovery changes catalogRequest, while page Refresh observes the separate active core request. The discovery lane confirmed its separate completion owner. Preserving that boundary retains existing behavior and avoids coupling two request families. The sole source edit after review clarifies a comment.

The original Bun thread attempt failed before collecting tests. The supported pinned-Bun fork pool supplies the test results above; this is not a Node runtime substitution.

Replacement-head full CI 39622936407 has exactly three failed cases. The latest completed scheduled main 39635924183 fails the compact-identity and native-titlebar cases by the same names, but passes Agent scope. Agent scope was therefore reproduced on this PR's actual tested main parent c16b5166520bf768b7155cd9f1d4b58eb25d68dd using the standard production-bundled Playwright configuration, one case and one worker. It failed at the identical assertion on line 328 with belowCard: false, anchoredToCard: false, inViewport: true. The production build passed; the result was 1 failed / 6 skipped. No source or expectation was changed for that reproduction.

Failed PR case Baseline evidence
Control UI agent page scope > scopes pages from the chip and keeps Agents settings independent Exact tested main parent c16b5166, same assertion and values
compact identity menu > keeps common actions visible with nine native gateways and opens an unclipped keyboard switcher Scheduled main 39635924183, job 119346775261
Control UI native-nav sidebar toggle E2E > hosts navigation, search, sessions, and history in web titlebar chrome Scheduled main 39635924183, job 119346775328

The two failed PR jobs identify actual CI merge a1ce829270176b9a989476bbc705898679f27370, combining that exact main parent and this PR head. These failures use the documented inherited-failure landing route; they are not claimed green. Both real-Gateway shards, the performance check and lint passed. The exact-base Agent scope invocation explicitly used Node for the Playwright E2E configuration; focused UI unit proof used the pinned Bun fork.

Production LOC: 1,578 → 1,647 (+69). Test/fixture LOC: 1,256 → 1,388 (+132). The growth adds a completion receipt with prompt retirement, stable readiness observation and regression proof; accepted data and request authority are not duplicated.

Wave-ten item in touched production files Before → after
Conditional intrinsic-handler debt 0 → 0
Component lifecycle debt 0 → 0
Native async core feedback consumer 0 → 1
Mutation conversions 0 → 0
Changed lazy boundaries 0 → 0
Collection-state conversions 0 → 0
JSX conversions 0 → 0
Context conversions 0 → 0
Reveal coordination 0 → 0
Owner API removals 0 → 0

Native Loading uses 0 → 2, Errored 0 → 1, isPending 0 → 1, and latest 0 → 1. Existing effects remain 2 → 2; component cleanup, render effects, imperative listeners/queries, owner-escape APIs, manual imports and manual component construction remain 0 → 0. The synchronous loading fact remains owner admission authority; the view no longer consumes it as pending presentation.

Same-machine exact-base performance Base 7debccb2 Head e13e0b0d Delta
Startup JS gzip 331,341 B 331,331 B −10 B
Startup CSS gzip / requests 40,439 B / 1 40,439 B / 1 unchanged
Chat boot JS gzip 1,501,009 B 1,500,990 B −19 B
New Session boot JS gzip 1,018,375 B 1,018,360 B −15 B

Strict performance exits 1 on both sides because the existing absolute startup cap (325,476 B) and chat cap (1,500,000 B) are already exceeded. No budget or baseline changed. Startup raw bytes grow 84 B; gzip stays within build variance and decreases 10 B. No lazy boundary or import is moved into boot.

Visual evidence

The real built Models route uses synthetic Gateway data. Four states cover refresh pending, accepted error, Retry pending and recovery. The capture checks actual request admission, disabled pending controls and retained search state. Focused mounted tests also retain default-model picker identity and Retry focus. These are bounded local captures, not live-Gateway E2E claims; broad UI and real-Gateway proof runs under ci:full.

State Before After
Refresh pending Before: Refresh pending After: Refresh pending
Accepted error Before: Accepted error After: Accepted error
Retry pending Before: Retry pending After: Retry pending
Recovered Before: Recovered After: Recovered

The corrected captures and strict measurements use the validated bundle for e13e0b0de4a356ce7d767d65d41c3d1f72378127. The full build completed, and the promoted index and build-input hashes match the staged output measured and captured.

@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 in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

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-21T15:30:13.969845Z e13e0b0 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
@steipete
steipete merged commit 2a59785 into main Oct 21, 2026
132 of 137 checks passed
@steipete
steipete deleted the solid2/w-s2-providers-core branch October 21, 2026 18:37
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

Grynn added a commit to Grynn/openclaw that referenced this pull request Oct 21, 2026
Upstream grew ui/src/pages/model-providers/view.tsx (Solid async provider
reads, openclaw#179503); with the native-route readiness credential summary on top
it exceeded the 700-line max-lines rule. Move the runtime-managed credential
label into view-status.tsx beside the other native-route readiness helpers.
No behavior change.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…79503)

* refactor(ui): use Solid async feedback for provider reads

* fix(ui): observe provider core refresh readiness
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. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant