Skip to content

fix(ui): scope provider-add discovery warning to its own provider - #188541

Merged
obviyus merged 1 commit into
mainfrom
fix/provider-dialog-discovery-warning
Oct 30, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/provider-dialog-discovery-warning

Conversation

@obviyus

@obviyus obviyus commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Problem

After you save a provider key in the add-provider dialog, the dialog shows the page-wide catalog warning "More models could not be discovered." It shows this warning when any provider's listing fails. The warning also doesn't say which provider failed.

Observed on a live install: after adding Particle, the dialog showed that warning, but models list --provider particle returned all 3 Particle models as available. The only failing outcome was ollama: unavailable, because the local Ollama server was not running.

Fix

  • The dialog's save feedback now uses only its own provider's listing outcomes. It warns only if one of those outcomes is not ready. If the provider has no outcome, the dialog keeps the previous behavior.
  • The page banner names the providers whose listing failed: "Models from ollama could not be discovered." Without outcomes, it falls back to the old text.

User impact

Adding a working provider no longer looks broken when an unrelated provider is down. When discovery fails, the page now names the cause.

Proof

  • New page test: saving Anthropic while only Ollama fails shows no warning, and the dialog closes. Saving it while Anthropic's own listing fails still warns. The first case fails on main.
  • Browser run through the real dialog against a mock Gateway (only Ollama unavailable). Before: the dialog stays open with the warning, which matches the reported screenshot. After: the dialog closes and the banner names ollama.
  • ui/src/pages/model-providers: 27 files, 260 tests pass. The UI typecheck passes.

Before: unrelated Ollama failure warns in the new provider's dialog

After: dialog closes; banner names ollama

The add-provider dialog showed the page-wide catalog warning after a save, so any failing provider (for example a stopped local Ollama) made a working new provider look broken. The dialog now checks only its own provider's listing outcome, and the page banner names the providers whose listing failed.
@clawsweeper

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

@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. 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR scopes provider-save warnings to the saved provider and names unavailable providers in the page banner.

Example: Save a working Google provider key while Ollama is unavailable.

  • Before: The Google dialog stays open with “More models could not be discovered.”
  • After: The dialog closes and the page shows “Models from ollama could not be discovered.”

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused fix with visible browser evidence and distinct regression coverage; remaining CI is pending rather than failed.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the Models credential dialog in a browser against a mock Gateway: successful Google setup loses the unrelated warning, closes the dialog, and leaves an Ollama-specific page warning with Retry; this proves the changed UI presentation, not live provider connectivity.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Saving a working provider key displays an unrelated provider's discovery failure as a warning in the saved provider's dialog.
Reason: The correction makes successful setup feedback accurate while retaining genuine discovery failures and existing recovery controls; the collaborator-authored direction requires no additional product decision.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it fixes misleading provider-save feedback still present on main, with no actionable correctness or security findings.

Priority: P2
Reviewed head: f8f02872db2394cabf72ed393feea9c7b61ab3be

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Models settings page reads Gateway catalog outcomes and turns them into provider-save feedback and page-level discovery warnings.

flowchart TD
  A[Provider key dialog] --> B[Existing credential mutation owner]
  B --> C[Gateway catalog read]
  C --> D[Provider outcomes]
  D --> E[Provider scoped save feedback]
  D --> F[Page warning and Retry]
Loading

Technical review

Best possible solution:

Keep provider-save feedback scoped to matching catalog outcomes while preserving page-wide discovery warnings and Retry.

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

Current-main source forwards the global catalog warning into save feedback, and the supplied before screenshot demonstrates the resulting misleading dialog; no target code was executed during this review.

Is this the best way to solve the issue?

The patch is a small presentation fix using existing outcome and mutation owners, with no new state or parallel discovery path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8f1ef6c97eff.

Provenance checked

  • Provider mutation feedback keeps the original intent (fix(ui): preserve provider mutation ownership and visible outcomes #116829: Preserve acknowledged credential writes and visible success-plus-warning feedback when subsequent refresh fails; later Solid refactoring retained this contract.)
  • Catalog failure presentation keeps the original intent (34bdf6d: Expose shared catalog refresh failures without discarding usable choices.)
  • Catalog completion and prepared choices keeps the original intent (c9c856c: Adopt returned provider status independently while retaining healthy choices during partial discovery failures.)
  • Page-level discovery recovery keeps the original intent (fix(ui): restore model discovery retry for unavailable providers #180897: Keep the catalog warning's Retry action available even when provider rows already explain failures.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a90fc1e adds ui/src/pages/model-providers/config-actions.ts:63 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a90fc1e8a87d; files: ui/src/pages/model-providers/config-actions.ts)

PR surface

Source +32, Tests +34. Total +66 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 41 9 +32
Tests 2 35 1 +34
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 76 10 +66

Labels

Label changes:

  • add P2: A successful provider save appears partially broken when an unrelated provider is unavailable, but the credential write and usable provider remain intact.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A successful provider save appears partially broken when an unrelated provider is unavailable, but the credential write and usable provider remain intact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • 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 30, 2026, 1:17 PM ET / 17:17 UTC.

@obviyus
obviyus merged commit 10a6e4f into main Oct 30, 2026
101 checks passed
@obviyus
obviyus deleted the fix/provider-dialog-discovery-warning branch October 30, 2026 17:19
@obviyus

obviyus commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as 10a6e4f. Bug: after a provider save, the dialog showed the page-wide discovery warning, so an unrelated failure (a stopped local Ollama) made a working new provider look broken. Fix: the dialog checks only its own provider's listing outcome, and the page banner names the failing provider. Proof: a page regression test that fails on main, a browser before/after against a mock Gateway, and green CI.

RomneyDa added a commit that referenced this pull request Oct 31, 2026
…88541)

Port the merged fix onto the release branch's current provider controller and catalog loader.

(cherry picked from commit 10a6e4f)

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
…enclaw#188541)

## Problem

After you save a provider key in the add-provider dialog, the dialog shows the page-wide catalog warning "More models could not be discovered." It shows this warning when *any* provider's listing fails. The warning also doesn't say which provider failed.

Observed on a live install: after adding Particle, the dialog showed that warning, but `models list --provider particle` returned all 3 Particle models as available. The only failing outcome was `ollama: unavailable`, because the local Ollama server was not running.

## Fix

- The dialog's save feedback now uses only its own provider's listing outcomes. It warns only if one of those outcomes is not `ready`. If the provider has no outcome, the dialog keeps the previous behavior.
- The page banner names the providers whose listing failed: "Models from ollama could not be discovered." Without outcomes, it falls back to the old text.

## User impact

Adding a working provider no longer looks broken when an unrelated provider is down. When discovery fails, the page now names the cause.

## Proof

- New page test: saving Anthropic while only Ollama fails shows no warning, and the dialog closes. Saving it while Anthropic's own listing fails still warns. The first case fails on `main`.
- Browser run through the real dialog against a mock Gateway (only Ollama unavailable). Before: the dialog stays open with the warning, which matches the reported screenshot. After: the dialog closes and the banner names ollama.
- `ui/src/pages/model-providers`: 27 files, 260 tests pass. The UI typecheck passes.

![Before: unrelated Ollama failure warns in the new provider's dialog](https://github.com/user-attachments/assets/fd8c4a67-d5f1-4ecd-8137-e447d77a178b)

![After: dialog closes; banner names ollama](https://github.com/user-attachments/assets/e47969da-57ce-4830-b0e4-b2a19b2b90fc)

Co-authored-by: Ayaan Zaidi <[email protected]>
obviyus added a commit that referenced this pull request Oct 31, 2026
… a credential (#189014)

## Problem

`models.list` fails as a whole when one plugin-owned provider (`authScope: "plugin"`) has no live credential. Ambient credential discovery calls the provider's plugin-owned auth for every synthetic-auth provider, and that call throws `Plugin-owned auth for provider "<id>" is unavailable: live credential or no-auth evidence is missing`. The error escapes the catalog run, so no models come back for any provider.

Observed on a live install: after a restart, every `models.list` failed with this error for `typesafe`. A Particle key added through the add-provider dialog then showed no models. Particle itself was fine: it is enabled by default and its models come from its manifest catalog. The request never returned a list.

#188541 scoped the dialog warning to per-provider listing outcomes. It does not cover this case, because no outcomes come back when the request throws.

## Fix

`resolveAmbientAgentCredentialsForDiscovery` and `prepareAmbientAgentCredentialsForDiscovery` now skip a provider whose plugin-owned auth is unavailable (a branded `missing-provider-auth` error for that same provider, matched with `isProviderAuthError` so errors from separately loaded plugin chunks still match). Other errors still propagate. Catalog availability already reports such a provider per model as `missing-auth` (`model-catalog-decisions.ts`), so the provider shows as unavailable instead of hiding every other provider.

## User impact

One misconfigured or credential-less plugin provider no longer empties the model picker and Models page for everyone. Its own models show as unavailable.

## Proof

- New test in `src/agents/model-auth.plugin-scope.test.ts`: with a plugin-owned provider and no active credential, both discovery functions return without that provider instead of throwing. It fails on `main` with the same error the live install logged.
- `pnpm test src/agents/model-auth.plugin-scope.test.ts --maxWorkers=1`: 35 tests pass, about 20 s wall time.
- Related suites pass: agent model discovery auth, external CLI discovery, synthetic auth discovery, `models.list` provider outcomes, prepared runtime sources, catalog worker pool.
- `pnpm check:changed` passes.

No overlap with Pash/Sarah changes.

## Merge danger

Two-way door: a revert fully undoes it. No state, config or contract change. Blast radius: model catalog discovery for installs with plugin-owned providers.

Co-authored-by: Ayaan Zaidi <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 31, 2026
Match the provider-scoped warning introduced by #188541 and observed in FRV 41167503947.

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
… a credential (openclaw#189014)

## Problem

`models.list` fails as a whole when one plugin-owned provider (`authScope: "plugin"`) has no live credential. Ambient credential discovery calls the provider's plugin-owned auth for every synthetic-auth provider, and that call throws `Plugin-owned auth for provider "<id>" is unavailable: live credential or no-auth evidence is missing`. The error escapes the catalog run, so no models come back for any provider.

Observed on a live install: after a restart, every `models.list` failed with this error for `typesafe`. A Particle key added through the add-provider dialog then showed no models. Particle itself was fine: it is enabled by default and its models come from its manifest catalog. The request never returned a list.

openclaw#188541 scoped the dialog warning to per-provider listing outcomes. It does not cover this case, because no outcomes come back when the request throws.

## Fix

`resolveAmbientAgentCredentialsForDiscovery` and `prepareAmbientAgentCredentialsForDiscovery` now skip a provider whose plugin-owned auth is unavailable (a branded `missing-provider-auth` error for that same provider, matched with `isProviderAuthError` so errors from separately loaded plugin chunks still match). Other errors still propagate. Catalog availability already reports such a provider per model as `missing-auth` (`model-catalog-decisions.ts`), so the provider shows as unavailable instead of hiding every other provider.

## User impact

One misconfigured or credential-less plugin provider no longer empties the model picker and Models page for everyone. Its own models show as unavailable.

## Proof

- New test in `src/agents/model-auth.plugin-scope.test.ts`: with a plugin-owned provider and no active credential, both discovery functions return without that provider instead of throwing. It fails on `main` with the same error the live install logged.
- `pnpm test src/agents/model-auth.plugin-scope.test.ts --maxWorkers=1`: 35 tests pass, about 20 s wall time.
- Related suites pass: agent model discovery auth, external CLI discovery, synthetic auth discovery, `models.list` provider outcomes, prepared runtime sources, catalog worker pool.
- `pnpm check:changed` passes.

No overlap with Pash/Sarah changes.

## Merge danger

Two-way door: a revert fully undoes it. No state, config or contract change. Blast radius: model catalog discovery for installs with plugin-owned providers.

Co-authored-by: Ayaan Zaidi <[email protected]>
tideclaw-bot added a commit that referenced this pull request Nov 5, 2026
Backport accepted fixes onto 2026.11.5-beta.2.

Base: bc061f9
Canonical source tree before commit: e6c0c39

These are adapted/squashed backports; do not claim each is an exact Git cherry-pick.
Source provenance (selected verified commits; other cohorts use their frozen patch/adoption manifests):

runtime-B:
b20a0cc fix(macos): connect with configured credentials despite stale app environment (#191468)
c4c0942 fix(update): failed updates from 10.7–10.9 crash in automatic migration recovery (#189713)
6aae408 fix(update): preserve recovery errors and async triage callbacks (#191495)
8910654 fix(macos): prevent first-launch Gateway failures after upgrades (#191436)
00b2ff4 fix: parent sessions miss child approvals with a custom session store (#189827)
c6142a8 fix: avoid copying managed plugin binaries during Gateway startup (#187865)
e72b356 fix(anthropic): avoid token profile collisions (#187875)
807075d fix(anthropic): set API workspace at login (#186976)
bafe92f fix(exec): preserve no-timeout results from macOS app nodes (#190729)
9b05a64 fix(imessage): use a PostgreSQL-safe recovery cursor key (#184919)
6ba197f fix: session search on PostgreSQL scans every transcript row instead of using the text index (#187909)
4f49aa5 fix(sessions): PostgreSQL session search scans every transcript row again after the 5th search on a connection (#188979)
de3936c fix(macos): Mac tab shows a blank or stale page when a load fails (#185432)
e977080 fix(macos): prevent duplicate voice sends and false sent feedback (#186271)

provider-compaction:
1b43c2e fix(compaction): preserve active request provenance (#180214)
7b0cfe3 fix(google): restore tool calls with Python keyword parameters (#191561)
9039ceb fix(ci): keep compaction attribution helpers internal
d6a1327 feat(google): use the Interactions API for Gemini Flash models (#189395)
fe0f8d1 fix(google): Gemini models ignore configured topP (#190695)

history:
c51d733 fix(sessions): stop expanding archive reads from exhausting memory (#190690)
3c8bd4d fix(sessions): page oversized earlier history instead of failing at 8 MiB (#188450)
b195f61 fix(sessions): page oversized transcript history in both directions (#188483)
b65482e fix(gateway): preserve older history across hidden message gaps (#188557)
3d4fc94 fix(sessions): avoid oversized listing and imported-history reads (#189284)
33e7baf fix(sessions): bound active accounting without blocking writers (#190182)
682ade7 fix: preserve chat history continuation metadata (#188612)

runtime-C:
7e005b0 fix(macos): keep secrets when a Gateway config save fails (#187734)
15cf738 fix(macos): keep Gateway auth when Tailscale exposure is turned off (#187664)
b53a06b perf(update): read candidate state inventory without copying the shared database (#187921)
970fc4e fix: restore CLI message sends with agent tool policies (#188058)
73ad731 fix: stop model fallback when session capability metadata changes (#179312)
32305db fix: subagent turns fail after session metadata changes (#183501)
d13bd0f fix(codex): include relay conversation instructions in trajectory (#189005)
e375530 fix: replies after a plugin reload from Control UI go to the session's last external chat (#190982)
9346376 fix: reasoning-only retry is refused by Anthropic as reasoning_extraction (#184434)

direct-auth-state:
1b15408 fix(models): keep the model list when one plugin-owned provider lacks a credential (#189014)
7d8dc60 fix: recover startup migration with retained worker index (#189023)

capacity:
41772e3 fix(worktrees): settle completed disk debt on refused postchecks (#188727)

command-once-189369:
8269137 fix(plugins): plugin commands that continue the agent run three times on native command turns (#189369)

pg-board-189564:
7232a8d fix(boards): publish widgets with PostgreSQL storage (#189564)

queued-edit-189869:
92b32ca fix: hold queued messages through inline edits (#189869)

Preserve source attribution from original commits. For a genuinely exact individual pick only, use the conventional (cherry picked from commit <sha>) line.
Full file-level provenance: coverage-manifest.json; reviewed patch hashes: artifact-registry.json.
No held136/native82 content adopted by this work. No release or full-candidate qualification claim.

Additional original-source identities (exact adapted hunk scope is in frozen artifacts):
release-guides-185258: 39c37e6 docs(release): define ledger-first hotfix routing (#185258)
UI-history: 10a6e4f fix(ui): scope provider-add discovery warning to its own provider (#188541), 3d7b4c4 fix(ui): never fail loading earlier chat history without a boundary (#188372)
obsolete-cache-188203: 90d82c2 fix: preserve completed reasoning and refill chat snapshots (#188203)
webhook-169778: b1f643f fix(startup): keep webhook decisions startup recorded for channels Doctor left pending (#169778)
schema-lease-188391: ba6cfcd fix(state): keep lease renewal independent of parent admission (#188391)
backfill-188976: c75a8a8 fix(gateway): stop session row backfill once the Gateway is closing (#188976)
canonical-disable-188846: 88b56ee fix(config): auto-enable reads and writes mixed-case plugin policy under the canonical id (#188846)
matrix-177272: 5a6d22c fix(matrix): stop seeding new thread sessions from the room transcript (#177272)
provider-hook-189059: 0588f51 fix(models): isolate every per-provider catalog failure (#189059)
unicode-189868: 87396e7 fix(oc-path): avoid reading and editing a different Unicode key (#189868)
replay-cohort: 2031044 fix(sessions): acknowledge committed input retries without duplicate turns (#188527), 9114431 fix: resume configured fallback after interrupted attempts (#188672)

Co-authored-by: RomneyDa <[email protected]>
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 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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