[PR #14943] [MERGED] launch: fix openclaw not picking up newly selected model #14933

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14943
Author: @BruceMacD
Created: 3/18/2026
Status: Merged
Merged: 3/18/2026
Merged by: @BruceMacD

Base: mainHead: brucemacd/openclaw-model-launch


📝 Commits (1)

  • cb7c562 launch: fix openclaw not picking up newly selected model

📊 Changes

2 files changed (+123 additions, -0 deletions)

View changed files

📝 cmd/launch/openclaw.go (+2 -0)
📝 cmd/launch/openclaw_test.go (+121 -0)

📄 Description

Sessions with a stale model field were not updated when the primary changed, so the old model continued to be used.

Before:

❯ ollama launch openclaw --model kimi-k2.5:cloud

Starting your assistant — this may take a moment...

Starting gateway...

✓ OpenClaw is running

 Wake up, my friend!
...
 gateway connected | idle
 agent main | session main (openclaw-tui) | ollama/WRONG-MODEL | think low | tokens 11k/205k (6%)

After:

❯ ollama launch openclaw --model kimi-k2.5:cloud

Starting your assistant — this may take a moment...

Starting gateway...

✓ OpenClaw is running

 Wake up, my friend!
...
 gateway connected | idle
 agent main | session main (openclaw-tui) | ollama/kimi-k2.5:cloud | think low | tokens 11k/205k (6%)

🔄 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/14943 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 3/18/2026 **Status:** ✅ Merged **Merged:** 3/18/2026 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/openclaw-model-launch` --- ### 📝 Commits (1) - [`cb7c562`](https://github.com/ollama/ollama/commit/cb7c562fcf71cf989400637e950c4de874b38df9) launch: fix openclaw not picking up newly selected model ### 📊 Changes **2 files changed** (+123 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/launch/openclaw.go` (+2 -0) 📝 `cmd/launch/openclaw_test.go` (+121 -0) </details> ### 📄 Description Sessions with a stale model field were not updated when the primary changed, so the old model continued to be used. Before: ```bash ❯ ollama launch openclaw --model kimi-k2.5:cloud Starting your assistant — this may take a moment... Starting gateway... ✓ OpenClaw is running Wake up, my friend! ... gateway connected | idle agent main | session main (openclaw-tui) | ollama/WRONG-MODEL | think low | tokens 11k/205k (6%) ``` After: ```bash ❯ ollama launch openclaw --model kimi-k2.5:cloud Starting your assistant — this may take a moment... Starting gateway... ✓ OpenClaw is running Wake up, my friend! ... gateway connected | idle agent main | session main (openclaw-tui) | ollama/kimi-k2.5:cloud | think low | tokens 11k/205k (6%) ``` --- <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:08 -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#14933