Repository navigation
fix: remove configured providers from the Control UI - #201317
roboclaw-bot merged 8 commits into
Conversation
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: c01b0098-fe8b-40ee-b2ef-d60541efe940
|
🦞👀 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. |
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 0332178f-6a82-4797-ae95-e79dcd868f57
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: 76ce46fa-eb44-4308-8d02-ff437039c5d0
Co-authored-by: jesse-merhi <[email protected]>
Worked on by: - @jesse-merhi Co-authored-by: jesse-merhi <[email protected]> OpenClaw-Publication: dc00347d-44aa-44e7-99fe-e8ce59a295f7
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: blocked before merge. What this changesThis PR separates deleting a configured provider from removing its saved credentials. Example: Remove an offline Ollama provider containing local-one and local-two.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial 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 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherSettings → 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +122, Tests +186, Docs +2. Total +310 across 17 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 19, 2026, 8:19 AM ET / 13:19 UTC. |

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
mainat1bba101a9811, 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.models.providers.ollamawere gone; the other providers andfixture/currentdefault matched the original config.minimaxandminimax-cnoffered no way to choose the regional entry. On the corrected build, selectingminimax-cnand reloading removed only that entry, preservingminimaxand the default. Browser screenshot and result.1bba101a9811..b54fbf406497found 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 selectedfixture/current; its running Gateway saved a synthetic credential asfixture: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 thefixture/currentdefault matched the stable installation. A second cold start preserved that result. A loopback provider checked the credential actually sent bymodels.probeforfixture:manualon 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.Annotated comparison
Reported by Jesse.
Work sessions
Linked for team reference; these sessions aren’t public.
🦞 Made with OpenClaw
Worked on by