Repository navigation
refactor(ui): present model discovery with Solid readiness - #180484
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: 52a25a73ee
ℹ️ 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".
| const error = createMemo(() => props.catalogDiscoveryError); | ||
| const read = createMemo(() => { | ||
| const currentError = error(); | ||
| return (receipt()?.promise ?? Promise.resolve(null)).then((completionError) => { |
There was a problem hiding this comment.
Avoid suspending when no catalog request exists
When an existing catalogDiscoveryError is presented without a catalogReceipt—for example, an initial published partial inventory—this still creates a newly pending promise via Promise.resolve(null).then(...). The Loading fallback therefore temporarily suppresses the alert (showing only discovery progress, or nothing), and the existing synchronous view.test.ts case that expects the backlog and warning together will fail before the promise microtask settles. Handle the no-receipt error synchronously rather than manufacturing an asynchronous read.
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR moves model-discovery progress and errors into Solid async boundaries backed by the existing loader’s completion receipt. Example: Retry model discovery while openai/prepared-primary remains selected.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored refactor open; its ownership model is sound, but an existing synchronous view test must follow the new async feedback. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Models settings loader admits scoped catalog requests and publishes accepted results; its completion receipt now feeds the Solid feedback region beside the saved model controls. flowchart LR
A[Models settings] --> B[Catalog loader]
B --> C[Gateway catalog request]
C --> B
B --> D[Accepted catalog]
B --> E[Completion receipt]
E --> F[Solid discovery feedback]
D --> G[Retained model controls]
Technical reviewBest possible solution: Keep the owner-backed readiness cutover and update the existing view regression to await settled feedback while preserving its backlog, warning, and Retry assertions. Do we have a high-confidence way to reproduce the issue? Source establishes the test failure: mounting known discovery feedback without a receipt creates a pending promise, but the existing test asserts the alert before any promise microtask can settle; no target code was executed. Is this the best way to solve the issue? The existing loader remains the sole request owner, retired receipts settle before transport abort, and saved controls remain outside the feedback boundary; adapting the synchronous test is smaller than changing production behavior to satisfy its timing assumption. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8d2f6ec66180. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +70, Tests +102. Total +172 across 4 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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, 5:35 AM ET / 09:35 UTC. |
…-s2-provider-discovery-replacement
|
Merged via squash.
|
…180484) * refactor(ui): derive provider catalog readiness with Solid * test(ui): await provider discovery error readiness
Whole-scope census: exact base
6271f490726501bc6514c67bc0d564f47bbe7616→ head5af807faf485c9b97235624e40071644951b7595. Counts are pending patterns unless stated; adopted/pending/excepted read and mutation families keep the original resource denominator. Cron is owned by the recipes lane.179 production files, 39162→39232 lines (+70). Pending items: 15→14 (10 mutations, 4→3 reads, 1 cleanup). This head earns credit only after a verified merge. Exact committed blobs parsed in
census-main-6271.jsonandcensus-provider-5af807.json; owner and exception semantics personally reviewed. ProvidergetOwnermethods are plain discovery APIs;core.catalogLoadingretains owner admission semantics, while read readiness is rendered through the receipt under Loading/Errored. Profile order/reset retains coalesced desired intent for retry rather than transient optimistic rollback.What Problem This Solves
Model discovery needs Solid-owned readiness and retry feedback while keeping saved model controls mounted. This replaces the final manual read presentation in Model Providers and supersedes #179576 and #179838, which remain preserved until this replacement lands.
Why This Change Was Made
The existing plain TypeScript catalog owner exposes its admitted completion to one async memo. Loading and Errored own the feedback; isPending and latest keep progress accurate without holding the route update that retires an old request. Reset settles the retired completion before aborting transport, including transports that ignore abort. Saved model pickers remain outside the readiness slot and preserve DOM identity.
The error fallback has its own Loading region because Solid rc.16 retains an Errored fallback during retry. A failed provider and another provider's discovery backlog can appear together. No RPC, route, tag, class, config operation, dependency, or startup import is added. Usage and cost retain their independent retries; profile order/reset retain their coalesced desired-intent retry contract.
Touched production LOC: 1,389 → 1,459 (+70) across three files. Model Providers: 7,600 → 7,670; whole scope: 39,162 → 39,232. The two touched test files total 1,804 → 1,910 (+106). Growth covers the explicit retirement receipt and readiness/error boundaries, with no parallel implementation.
Evidence
Exact final head:
5af807faf485c9b97235624e40071644951b7595; paired base:6271f490726501bc6514c67bc0d564f47bbe7616. Official main was merged once, including the separately reviewed sharing-fixture correction #180498. Full PR CI is enabled withci:full.pnpm tsgo:ui(tsrs)view.test.ts, pinned Bun and one workerci:fullAll surfaces remain under their caps, including the 325,000 B startup cap. Locale deltas range from 0 to +2 B. Existing lazy boundaries remain intact.
The first CI run (
39754687556) exposedrenderModelProviders > keeps discovery failure recovery visible while another provider is pending: its assertion ran before the async error boundary settled. The correction waits for the same visible error and preserves progress/Retry assertions; it reproduced red and now passes in the complete final-head view suite. The sharing failure is corrected on official main by #180498. The media-spacing case passed a bounded run on both its exact CI base and the corrected head; its earlier failure is not claimed as inherited. Replacement-head CI run39762918802passed, including the complete UI and real-Gateway shards.The prior auto request was confirmed retired before this replacement push. Fresh native review and preparation bind the replacement head; no auto request is re-armed. No external lease was used.
Screenshots
Synthetic data only. Each before/after pair uses its own sealed build of the exact revisions above. Full frames were inspected before publication.