Skip to content

fix(ui): restore model discovery retry for unavailable providers - #180897

Merged
steipete merged 4 commits into
mainfrom
solid2/catalog-partial-retry
Oct 22, 2026
Merged

steipete merged 4 commits into
mainfrom
solid2/catalog-partial-retry

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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

Proof Result
Regression on base f113dde017ec The extended production-page test fails at the missing native Retry button after refreshFailed + an unavailable provider outcome.
Changed catalog page test file 16 passed; 6.39 s runner, 1.3 s test body. Covers rejected Retry, subsequent recovery, retained picker identity, and unchanged saved config.
Focused progressive Models E2E file 12 passed, including all three partial-cache scenarios; 70.46 s test runner. Node runtime is required by this Playwright suite.
Real-Gateway catalog scenario The named publication/Refresh/Retry scenario passed (6.53 s body; 65.59 s runner), preserving acquisition counts and saved selection. Node runtime is required by Playwright and the real Gateway.
UI typecheck, targeted lint/format, production Knip Passed.
Final exact-head full CI 39844087326: 38 jobs passed, 27 skipped.
Independent autoreview No actionable findings.
Built browser capture Before: no Retry. After: Retry is visible; clicking it sends one discovery refresh and the failed provider becomes Ready. No page errors.
Strict build/performance, base → head Matched runtime builds against current merge base 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, Solid refresh/affects, Loading/Errored/Reveal, and outside-held completion reads all 0; effects 2, onSettled 1. One catalog-error suppression predicate was removed (1 → 0); the existing downstream Errored remains the feedback owner.

CI uses ci:full for 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. Run 39837668541 passed 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 run 39844087326 passed all 38 selected jobs (27 skipped).

Before After
Partial discovery with no Retry Partial discovery with Retry restored

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

clawsweeper Bot commented Oct 22, 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 22, 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-22T19:56:39.559814Z 5b45345 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@steipete
steipete enabled auto-merge (squash) October 22, 2026 18:57
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The provider failure suppresses the catalog warning and its Retry button.
  • After: The warning and Retry remain available while saved model choices and provider details are preserved.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused recovery fix supported by inspected browser evidence and a strengthened production-page regression, with no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after captures of the built Models page with synthetic partial-catalog data show the changed controller restoring Retry beside retained defaults; the body also reports a successful discovery refresh after clicking it.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Users lose the catalog Retry action when a partial discovery failure is also represented by a provider row.
Reason: Restoring an existing recovery action has clear value, preserves the provider redesign, and follows the maintainer-authored direction.

Regression provenance

Regression provenance — suspected predecessor, not a causality claim: source commit 18cd3088f476 by Peter Steinberger; no PR verified.

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
Reviewed head: 7e3ea2df3c4fefa2be1415a891e2b6cc2f944597

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Catalog error suppression changes intended behavior with a stated reason (f6f59b1: The provider redesign suppressed catalog warnings when a row already explained discovery failure; this PR explains that the suppression also removed the only catalog Retry action.)
  • Existing catalog recovery regression test keeps the original intent (9ef8502: The earlier test consolidation retained distinct recovery and saved-choice contracts; this PR strengthens that same scenario rather than adding a duplicate suite.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 18cd308 adds ui/src/pages/model-providers/model-providers-controller.ts:387 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/model-providers-controller.ts)

PR surface

Source -7, Tests +11. Total +4 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 8 -7
Tests 1 13 2 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 14 10 +4

Labels

Label changes:

  • add P2: Restores a missing recovery affordance for partial discovery without blocking use of already configured models.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Restores a missing recovery affordance for partial discovery without blocking use of already configured models.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • 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 22, 2026, 2:59 PM ET / 18:59 UTC.

@steipete
steipete disabled auto-merge October 22, 2026 19:06
@steipete
steipete merged commit b300550 into main Oct 22, 2026
103 of 105 checks passed
@steipete
steipete deleted the solid2/catalog-partial-retry branch October 22, 2026 20:24
@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
…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
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. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant