Repository navigation
fix(ui): show reported model discovery errors in settings - #169316
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: needs maintainer review before merge. What this changesThe 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.”
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +5, Docs +2. Total +7 across 4 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 11, 2026, 3:42 PM ET / 19:42 UTC. |
|
Merged via squash.
|
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.
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.
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.listresponse, 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.