Skip to content

fix(ui): show reported model discovery errors in settings - #169316

Merged
steipete merged 1 commit into
mainfrom
codex/qa1054-model-discovery-error
Oct 11, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa1054-model-discovery-error

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Models settings hides the useful error when a model-discovery request fails, showing only “More models could not be discovered.”

User Impact

The Defaults card now displays the reported error beside Retry, so users can follow the recovery advice. Saved model choices and retry behavior are preserved.

Why This Change Was Made

The existing loader already formats and redacts discovery errors. Render that owned message instead of replacing it with fixed text. Partial catalog failures without a more specific error still show the existing generic warning.

Evidence

The strengthened mounted regression fails on the original renderer: it receives “discovery failed” but displays the generic warning. Both existing test files pass after the fix (55 tests); no test rows were added. The catalog file takes 14.068 seconds wall with pnpm test <file> --maxWorkers=1; the view file takes 9.246 seconds. Exact-head CI run 38168826903 passed. UI shard job walls were 334, 346, and 328 seconds; UI E2E was 96 seconds. These job totals include setup and other selected tests, not just this regression.

A bundled browser flow opens Models, clicks Retry, receives a synthetic rejected models.list response, and verifies the reported error with the saved model retained (32.723 seconds wall). Screenshots below show that same failure before and after.

This fixes lost request-error text. It does not claim to resolve a separate partial-discovery failure whose public response provides no specific failing provider.

UI production and owning test types, scoped lint/style/format checks, touched ratchets, UI localization validation, and docs links pass. Fresh independent review is clean through P2.

Before: Models hides the reported discovery error

After: Models shows the reported error and retains Retry

@clawsweeper

clawsweeper Bot commented Oct 11, 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.

@steipete
steipete marked this pull request as ready for review October 11, 2026 19:37
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XS labels Oct 11, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The Models Defaults card displays the existing formatted discovery error beside Retry instead of replacing it with a generic warning.

Example: A user clicks Retry in Models settings and models.list rejects with “Model discovery unavailable. Check the provider connection and retry.”

  • Before: The card shows “More models could not be discovered.”
  • After: The card shows the reported recovery advice beside Retry and retains the saved model.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-level repair with inspected browser proof, useful existing regressions, and no actionable defects; pending CI does not change the patch rating.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots match the described bundled Control UI browser flow: a synthetic models.list rejection after Retry changes the generic warning into reported recovery advice while retaining the saved model and Retry.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Models settings hides reported discovery recovery advice behind a generic warning.
Reason: The existing feature owner authored a focused repair that exposes useful diagnostics without changing defaults or introducing policy.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it fixes an error-display defect still present on current main, with matching browser screenshots and no actionable findings.

Priority: P2
Reviewed head: 165e9f337f01bc7d2e8f1cfcd5be84cb46e3863f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI catalog loader receives Gateway model-discovery results, formats request failures, and passes diagnostics to the Defaults card alongside the existing catalog and saved selections.

flowchart LR
  A[Models settings Retry] --> B[Catalog loader]
  B --> C[Gateway models list]
  C --> D[Formatted and redacted error]
  D --> E[Defaults card alert]
  E --> A
Loading

Technical review

Best possible solution:

Use the loader-owned diagnostic in the existing alert while preserving generic partial-failure warnings, saved selections, and Retry.

Do we have a high-confidence way to reproduce the issue?

Current-main source deterministically substitutes generic text for a nonempty reported discovery error; the supplied before screenshot shows that result, and no new reproduction was run.

Is this the best way to solve the issue?

The one-line renderer repair addresses the actual loss of diagnostic text without adding another formatter, changing discovery requests, or altering persisted settings.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 728917f5194a.

Provenance checked

  • Defaults discovery-error rendering changes intended behavior with a stated reason (8127bab: The Solid migration preserved the preceding Lit renderer's output; the PR explains that fixed text loses already formatted request diagnostics, while generic partial-failure warnings remain.)
  • Catalog and pending-discovery regression assertions keeps the original intent (fix: keep partial model discovery actionable #153703: Existing coverage protects visible Retry during pending discovery and preservation of usable models; the changes strengthen existing scenarios without adding test rows or replacing those contracts.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit c739af6 adds ui/src/pages/model-providers/view.test.ts:130 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c739af6e46ba; files: ui/src/pages/model-providers/view.test.ts)

PR surface

Source 0, Tests +5, Docs +2. Total +7 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 2 6 1 +5
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 9 2 +7

Labels

Label changes:

  • add P2: Lost recovery advice causes limited Models settings friction while saved choices and in-product Retry remain available.
  • 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: Lost recovery advice causes limited Models settings friction while saved choices and in-product Retry remain available.
  • 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 11, 2026, 3:42 PM ET / 19:42 UTC.

@steipete
steipete merged commit df78e7a into main Oct 11, 2026
151 of 153 checks passed
@steipete
steipete deleted the codex/qa1054-model-discovery-error branch October 11, 2026 19:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 11, 2026
Bind preview Escape listeners through the mounted rail window. Solid refs run before template nodes are adopted, so the preview document has no defaultView and never registered hover dismissal. Keep the exact listener window for cleanup.

Update the catalog failure expectation to the reported diagnostic introduced by #169316; configured model retention and refresh recovery remain covered.

Proof: rail Chromium 4/4, split rail Chromium 2/2, provider outcomes 4/4, rail unit and scroll 21/21, UI typecheck. Historical 86c2aae rail and split tests pass. WebKit Escape/focus assertions pass; its ResizeObserver warning reproduces on the unpatched baseline before Escape. Build and strict performance reproduce inherited 36 chat requests against the 35-request limit. Startup JS 421835 to 421843 B gzip, two CSS requests. Autoreview found no actionable P0-P2 issues.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
Bind preview Escape listeners through the mounted rail window. Solid refs run before template nodes are adopted, so the preview document has no defaultView and never registered hover dismissal. Keep the exact listener window for cleanup.

Update the catalog failure expectation to the reported diagnostic introduced by openclaw#169316; configured model retention and refresh recovery remain covered.

Proof: rail Chromium 4/4, split rail Chromium 2/2, provider outcomes 4/4, rail unit and scroll 21/21, UI typecheck. Historical 14202c3 rail and split tests pass. WebKit Escape/focus assertions pass; its ResizeObserver warning reproduces on the unpatched baseline before Escape. Build and strict performance reproduce inherited 36 chat requests against the 35-request limit. Startup JS 421835 to 421843 B gzip, two CSS requests. Autoreview found no actionable P0-P2 issues.
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 docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS 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