Skip to content

fix: remove configured providers from the Control UI - #201317

Merged
roboclaw-bot merged 8 commits into
mainfrom
openclaw/control-ui-provider-removal-leaves-ollama-configured
Nov 19, 2026
Merged

roboclaw-bot merged 8 commits into
mainfrom
openclaw/control-ui-provider-removal-leaves-ollama-configured

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #177163 (broader model management; not closed by this change).

What Problem This Solves

In Settings → Models, confirming Remove provider could sign out credentials but leave an offline Ollama provider configured. With no removable credentials, the button could be missing entirely.

User Impact

Remove provider deletes the selected Gateway entry, even offline. When two configurations share a card, each removal button names its exact entry. Other providers, the selected default, and models downloaded on the server are unchanged. Remove saved access and individual account sign-out remain credential-only actions. Saved accounts or externally managed credentials may still make a provider available.

Why This Change Was Made

The button uses a revision-checked config patch rather than models.authLogout. If another client changes the config first, the UI refreshes and leaves the decision to the user instead of replaying the deletion.

Evidence

  • Before: On main at 1bba101a9811, Chromium against an isolated Gateway showed the Ollama card and both configured models still present after confirmed removal. The Ollama endpoint was offline; its usage warning was not the removal failure.
  • After: Chromium clicked the same button, confirmed, and reloaded the final candidate. The card and models.providers.ollama were gone; the other providers and fixture/current default matched the original config.
  • Grouped entries: On the previous PR build, a MiniMax card containing both minimax and minimax-cn offered no way to choose the regional entry. On the corrected build, selecting minimax-cn and reloading removed only that entry, preserving minimax and the default. Browser screenshot and result.
  • All 262 provider-page tests passed, including a concurrent-write regression that verifies a single rejected delete, refreshed config, and no logout. UI typecheck and formatting passed; targeted lint reported no errors. The production UI built; its CSS-size and chat boot-request advisories match the previously measured base.
  • Final committed local Codex autoreview of 1bba101a9811..b54fbf406497 found no actionable P0–P2 defects. The real-Gateway Chromium test ran separately. The earlier unrelated composer-width CI failure was fixed upstream in fix: keep the chat composer width steady on reload #201346; see the Checks tab for current-head status.

Existing installation: v2026.11.5 → PR build

Installed the published [email protected] package (e13cf15) in isolation. Its CLI wrote the two provider entries and selected fixture/current; its running Gateway saved a synthetic credential as fixture:manual. After stopping that Gateway, started the candidate runtime and Control UI on the same state directory, without rewriting or copying the config or credentials. The candidate loaded both providers and the saved profile.

In Chromium, clicked Remove provider: Ollama, confirmed, and reloaded. The provider keys on disk went from [fixture, ollama] to [fixture]; the complete sibling entry and the fixture/current default matched the stable installation. A second cold start preserved that result. A loopback provider checked the credential actually sent by models.probe for fixture:manual on stable, after upgrade, after removal, and after cold restart: it matched the original synthetic value all four times. No external provider or production Gateway was used. This verifies existing-data compatibility, not the package updater itself.

Browser comparison

Same offline Ollama scenario: after confirmation on main, Ollama stays listed; after confirmation and reload with the fix, only the other configured provider remains.

Before: Ollama remains listed

After: Ollama is gone

Annotated comparison

Before: Ollama card highlighted

After: remaining provider highlighted

Reported by Jesse.

Work sessions

Linked for team reference; these sessions aren’t public.

🦞 Made with OpenClaw

Worked on by

roboclaw-bot and others added 2 commits November 18, 2026 15:43
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: c01b0098-fe8b-40ee-b2ef-d60541efe940
@clawsweeper

clawsweeper Bot commented Nov 18, 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.

roboclaw-bot and others added 2 commits November 18, 2026 15:56
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 0332178f-6a82-4797-ae95-e79dcd868f57
@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. labels Nov 18, 2026
roboclaw-bot and others added 4 commits November 18, 2026 16:14
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: 76ce46fa-eb44-4308-8d02-ff437039c5d0
Worked on by:
- @jesse-merhi

Co-authored-by: jesse-merhi <[email protected]>
OpenClaw-Publication: dc00347d-44aa-44e7-99fe-e8ce59a295f7
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Nov 19, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Grouped-card verification, b54fbf406497: both entries are configured on one MiniMax card. Clicking Remove provider: minimax-cn, confirming, and reloading removed just the regional entry from the isolated Gateway. The global entry and the default model were unchanged.

The MiniMax card shows separate removal actions for minimax and minimax-cn

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR separates deleting a configured provider from removing its saved credentials.

Example: Remove an offline Ollama provider containing local-one and local-two.

  • Before: Confirming Remove provider leaves models.providers.ollama configured.
  • After: Confirmation deletes that entry while preserving other providers and the fixture/current default.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The browser proof supports the focused behavior and no code defect was found; existing-installation compatibility remains unverified.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium screenshots and the supplied real-Gateway result exercise offline provider removal through Settings → Models; exact-head discussion also records grouped-entry preservation, but the required latest-stable upgrade scenario is absent.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: Remove provider can leave an offline configured provider present or offer no removal action when it has no removable credentials.
Reason: The maintainer-authored direction resolves the misleading removal flow while preserving the documented credential-only operation and deliberately leaving the broader linked request open.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this PR open: it provides useful, maintainer-approved provider removal that current main lacks, and inspection found no concrete code defect.

Priority: P2
Reviewed head: b54fbf406497e004c18380d447225785faeb32b4

Before merge

  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Provide redacted evidence of upgrading an isolated v2026.11.5 installation with existing provider settings, then removing one entry while preserving sibling providers, credentials, and defaults.
Agent review details

How this fits together

Settings → Models derives provider cards from Gateway configuration, credentials, and catalogs; confirmed removal submits an exact-key patch through the existing configuration writer.

flowchart LR
  A[Gateway configuration] --> B[Provider cards]
  B --> C[Removal confirmation]
  C --> D[Configuration writer]
  D --> E[Revision checked Gateway patch]
  E --> A
  C --> F[Credential logout]
Loading

Technical review

Best possible solution:

Keep configuration deletion in the existing revision-checked writer while retaining separate credential removal and unchanged model selections.

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

Current-main source confirms credential-only removal, and supplied Chromium evidence demonstrates the offline Ollama symptom; no target code was executed during this review.

Is this the best way to solve the issue?

The implementation uses the existing config writer and exact configured keys, preserves the credential operation, and introduces no competing persistence owner or unnecessary module.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3587df70a233.

Provenance checked

  • Provider removal versus credential removal changes intended behavior with a stated reason (09e2b15: Provider removal originally shared credential editing and logout machinery while preserving provider settings; the PR explains why configuration deletion now needs its own action.)
  • Selected defaults and removal warning keeps the original intent (996ec4e: Keep default selections reversible and warn users instead of silently switching them to another provider.)
  • Profile action ownership keeps the original intent (6ac4db1: Consolidate single-consumer operations without changing public contracts or persistence semantics.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 996ec4e adds ui/src/pages/model-providers/provider-row.tsx:323 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 996ec4ed9adc; files: ui/src/pages/model-providers/provider-row.tsx)
  • Peter Steinberger: Raw commit 6ac4db1 adds ui/src/pages/model-providers/profile-actions-controller.ts:329 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6ac4db18c48e; files: ui/src/pages/model-providers/profile-actions-controller.ts)

PR surface

Source +122, Tests +186, Docs +2. Total +310 across 17 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 4 144 22 +122
Tests 12 200 14 +186
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 17 346 36 +310

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Provider removal is a useful, bounded Models-page improvement without evidence of an urgent runtime regression.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.

Label justifications:

  • P2: Provider removal is a useful, bounded Models-page improvement without evidence of an urgent runtime regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • 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 November 19, 2026, 8:19 AM ET / 13:19 UTC.

@roboclaw-bot
roboclaw-bot merged commit 84d4624 into main Nov 19, 2026
133 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/control-ui-provider-removal-leaves-ollama-configured branch November 19, 2026 13:52
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant