Repository navigation
fix(ollama): keep local setup local and skip embedding chat defaults - #130459
Merged
Merged
Conversation
Share remote identity across discovery, node inference, and Local-only setup. Keep affirmative embedding-only models out of inferred chat capabilities, guided selection, and failed-download fallback while preserving advertised metadata and existing unknown-capability chat fallback behavior. Follow up on #130240 with reproduced regressions, 742 Ollama tests, isolated real-daemon before/after proof, and source-blind public CLI validation. Co-authored-by: Yigtwxx <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 26, 2026 22:23
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 27, 2026
…penclaw#130459) Share remote identity across discovery, node inference, and Local-only setup. Keep affirmative embedding-only models out of inferred chat capabilities, guided selection, and failed-download fallback while preserving advertised metadata and existing unknown-capability chat fallback behavior. Follow up on openclaw#130240 with reproduced regressions, 742 Ollama tests, isolated real-daemon before/after proof, and source-blind public CLI validation. Co-authored-by: Yigtwxx <[email protected]>
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #130240
AI-assisted follow-up. Thanks to @Yigtwxx for the original remote-discovery work in #130240; this change builds on that merged fix without replaying it.
What Problem This Solves
Fixes an issue where Ollama setup could select a cloud model after the operator chose Local only, or choose an embedding model as the default chat model. A remote alias identified only by
remote_modelcould also appear in the local node-inference inventory.Embedding rows could gain inferred tool support when their remote inspection omitted capabilities. Separately, an embedding row advertising tools could stop setup from scanning a later chat model, and a failed model download could fall back to the first installed embedding model.
Why This Change Was Made
Keep remote identity and embedding-only classification in the Ollama plugin's metadata owner. Local node discovery/chat and Local-only setup now share remote classification; setup filters inventory before inspection limits, default selection, and config projection. Capability inference, catalog admission, setup selection, and failed-download fallback share the embedding-only rule while retaining truthful advertised metadata.
The fallback reuses inspected metadata and inspects an unscanned candidate before making it the default. If only embedding models are available, setup reports the failure and preserves the prior config. Existing unknown-capability and plain-chat fallback behavior is retained; no new tool/context requirement, public option, SDK surface, dependency, or schema is introduced.
Production LOC: +76/-34 (net +42). Tests: +204/-60 (net +144). Growth implements the shared identity/eligibility boundary and inspection-before-fallback ownership; duplicate remote predicates, raw-tools decisions, and the unchecked first-available fallback are removed. The failed-download regression table replaces the old standalone fallback test in the existing noninteractive suite.
User Impact
Local-only operators keep local models throughout discovery, selection, and saved configuration. Embedding models no longer become automatic chat defaults through inferred capabilities or failed-download fallback. Cloud + Local remains inclusive, mixed completion/embedding models remain eligible, and advertised tool metadata is not erased.
Evidence
Reviewed head:
7519d705926228e4f355e8f700a1b0181bc3b5c2.node scripts/run-vitest.mjs extensions/ollama: 28 files, 742 tests passed.Pong!(4 completion tokens). Final built-CLI noninteractive onboarding against the real daemon completed and saved the selected local model in isolated config.No authenticated cloud completion was performed. Current official cloud manifest metadata was complete. Real model names/digests stayed unchanged throughout independent validation, and the isolated daemon/proxy were stopped afterward. Separate follow-ups remain for signed-out Cloud + Local wording/inventory consistency and remote-alias provenance in local context capping; this PR does not claim to repair those paths. Initial noninteractive discovery can still attempt a suggested download before finding a usable chat model after more than 200 embedding rows; the safe failed-download fallback is tested, but avoiding that unnecessary download remains a source-only follow-up. An initial fixture streaming failure followed by the wizard's Continue anyway left model/provider unset; this is preserved as an unconfirmed generic-wizard follow-up, not an accepted finding against this repair.