[PR #14993] launch: fix openclaw --model override handling #14956

Open
opened 2026-04-13 01:06:47 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14993
Author: @lentil32
Created: 3/21/2026
Status: 🔄 Open

Base: mainHead: fix/openclaw-model-override-launch


📝 Commits (1)

  • b2e72f4 launch: fix openclaw --model override handling

📊 Changes

4 files changed (+312 additions, -28 deletions)

View changed files

📝 cmd/launch/launch.go (+11 -2)
📝 cmd/launch/launch_test.go (+59 -0)
📝 cmd/launch/openclaw.go (+90 -19)
📝 cmd/launch/openclaw_test.go (+152 -7)

📄 Description

ollama launch openclaw --model <model> was still running readiness checks against saved secondary models, so an explicit launch like --model kimi-k2.5:cloud could still prompt to download qwen3.5:35b.

Only ensure the override model during launch while preserving saved secondary models in config. Also normalize cached OpenClaw session model state (modelOverride / providerOverride and runtime model / modelProvider) so the new primary model takes effect immediately instead of being shadowed by stale session data.

Fixes #14990.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14993 **Author:** [@lentil32](https://github.com/lentil32) **Created:** 3/21/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/openclaw-model-override-launch` --- ### 📝 Commits (1) - [`b2e72f4`](https://github.com/ollama/ollama/commit/b2e72f40321d3a17e30710ee46390be2dd6103ac) launch: fix openclaw --model override handling ### 📊 Changes **4 files changed** (+312 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `cmd/launch/launch.go` (+11 -2) 📝 `cmd/launch/launch_test.go` (+59 -0) 📝 `cmd/launch/openclaw.go` (+90 -19) 📝 `cmd/launch/openclaw_test.go` (+152 -7) </details> ### 📄 Description `ollama launch openclaw --model <model>` was still running readiness checks against saved secondary models, so an explicit launch like `--model kimi-k2.5:cloud` could still prompt to download `qwen3.5:35b`. Only ensure the override model during launch while preserving saved secondary models in config. Also normalize cached OpenClaw session model state (`modelOverride` / `providerOverride` and runtime `model` / `modelProvider`) so the new primary model takes effect immediately instead of being shadowed by stale session data. Fixes #14990. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 01:06:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#14956