Repository navigation
fix(ui): restore model discovery retry for unavailable providers - #180897
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR restores the catalog Retry button when partial model discovery reports an unavailable or rejected provider. Example: Models receives refreshFailed=true and an openai provider outcome of unavailable.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — suspected predecessor, not a causality claim: source commit Possible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a current-main recovery regression with a minimal change, and no actionable correctness or security findings were identified. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Models controller combines Gateway catalog results and provider diagnostics into view props; the existing catalog feedback component renders recovery controls and delegates retries to the scoped catalog loader. flowchart TD
A[Gateway catalog results] --> B[Models controller]
B --> C[Provider rows]
B --> D[Catalog feedback]
D --> E[Retry action]
E --> F[Scoped catalog loader]
F --> A
Technical reviewBest possible solution: Restore the existing catalog recovery control by removing provider-row suppression while retaining the current loader, error boundary, and saved-selection ownership. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically hides catalog recovery when an unavailable or auth-rejected provider accompanies a catalog error; the supplied browser captures corroborate the missing and restored button, and the PR records a base-failing regression. Is this the best way to solve the issue? This is the smallest complete fix: the invariant is that provider diagnostics must not remove catalog recovery, and deleting the suppression restores that invariant through existing owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against df27c0c72d66. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -7, Tests +11. Total +4 across 2 files. Added test files: 0. View PR surface stats
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, 2:59 PM ET / 18:59 UTC. |
|
Merged via squash.
|
…nclaw#180897) * fix(ui): restore model discovery retry for unavailable providers * test(ui): retain partial catalog retry coverage * test(ui): exercise catalog retry with real Gateway
What Problem This Solves
Models settings loses its catalog Retry button when discovery returns a partial inventory with an unavailable or rejected provider.
User Impact
Users can retry discovery beside the model defaults while keeping their saved choices and the per-provider failure details.
Why This Change Was Made
The provider-row suppression introduced in #174904 removed the catalog warning because the row already explained the failure. The row has no equivalent discovery Retry action. Keep that useful row detail and let the existing catalog error boundary retain its recovery button; request admission, completion handling, and lazy loading stay with their existing owners.
Evidence
f113dde017ecrefreshFailed+ an unavailable provider outcome.77cccf4c14de: startup JS gzip 316,293 → 316,315 B (+22 B); CSS 41,124 B / 1 request unchanged. Chat 1,422,357 → 1,422,419 B (+62 B); New 1,017,055 → 1,017,087 B (+32 B). All caps pass; differences are within 64 B build variance. Both sides include the same generated plugin inventory.Production LOC: 697 → 690. Test LOC: 2,231 → 2,246. Four-file diff: +27/−19 (net +8). The existing test was strengthened; no duplicate suite or helper was added.
Pattern counts in the changed controller are unchanged:
action,createOptimistic,createOptimisticStore, async memo/projection,isPending,latest, Solidrefresh/affects,Loading/Errored/Reveal, and outside-held completion reads all 0; effects 2,onSettled1. One catalog-error suppression predicate was removed (1 → 0); the existing downstreamErroredremains the feedback owner.CI uses
ci:fullfor the affected model picker flow. Initial CI run 39834210125 failed three progressive-cache cases that explicitly expected the removed catalog warning; those assertions now require a visible warning and Retry while retaining the row-detail, open-picker, save, and header-Refresh checks. The focused E2E file passed locally; both real-Gateway shards passed in that first run. Run39837668541passed the progressive shard but failed the real-Gateway publication case because newer main had added the same no-alert expectation. That test now clicks the restored catalog Retry and checks recovery; its named scenario passed locally. The original inspected visual proof is reused because the follow-up changes only tests; byte proof was refreshed after merging main. Final exact-head full CI run39844087326passed all 38 selected jobs (27 skipped).