-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Gemma4/Qwen3.6 via local Ollama: only first token/word? rendered, while Ollama streams clean content-only output #91428
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
Chatting with gemma4:latest or qwen3.6 through OpenClaw's local Ollama provider returns only the first streamed token (e.g. "I", "this") in the UI, even though raw curl/ollama against the same model returns a full, clean content-only stream with no reasoning/thinking field present.
Steps to reproduce
ollama-rocmbucket package, then the Openclaw install triggered through the OpenClaw/Ollama startup flow) or the official homepage script on Linux;ollama pull gemma4:latestor qwen3.6.ollama launch openclaworopenclaw configurecurl http://localhost:11434/api/chat -d '{"model":"gemma4:latest","messages":[{"role":"user","content":"hi"}],"stream":true}'
This returns a complete, coherent reply with
contentpopulated normally in every chunk and noreasoning/thinkingfield at all:{"model":"gemma4:latest",...,"message":{"role":"assistant","content":"Hi"},"done":false}
{"model":"gemma4:latest",...,"message":{"role":"assistant","content":"!"},"done":false}
{"model":"gemma4:latest",...,"message":{"role":"assistant","content":" How"},"done":false}
... full reply: "Hi! How can I help you today? 😊"
This rules out the content vs reasoning field mismatch described in #27806. Ollama emits exactly the standard chunk shape OpenClaw expects, yet only the first token reaches the UI.
Reproduces identically across two machines, three OSs: Windows 11, CachyOS, and Debian stable.
Expected behavior
OpenClaw renders the full streamed reply, matching what raw Ollama / curl returns for the same model and prompt.
Actual behavior
Only the first streamed token is shown in the UI ("I", "this", etc.); the remainder of the reply never appears, even though the upstream delta.content stream from Ollama is clean, standard-shaped, and complete.
This might not be the #27806 content/reasoning field mismatch (no reasoning field present in the stream) and not the #67092 malformed leak (no think tags present either).
Both of those fixes are supposed to be already present in this build.
OpenClaw version
2026.6.1 (2e08f0f)
Operating system
Windows 11, CachyOS, Debian stable (reproduces identically on all three)
Install method
Official install script from the OpenClaw homepage (all three machines). Ollama installed via the official script on Linux; via scoop (ollama-rocm bucket) on Windows, triggered through the Ollama/OpenClaw startup flow.
Model
ollama/gemma4:latest, ollama/qwen3.6 (plain local Ollama, no proxy/vllm/llama.cpp)
Provider / routing chain
openclaw -> ollama (local, plain Ollama provider)
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
Affected: any user running gemma4 or qwen3.6 through OpenClaw's local Ollama provider.
Severity: blocks usage (models suggested by
ollama launch openclaware effectively unusable through OpenClaw: every reply truncates to one token).Frequency: all the time, two independent machines, three OSes (existing Windows 11 install, fresh CachyOS, Debian stable installs).
Additional information
Switching to mistral:7b causes a full reply to render, but the reply itself is not a conversational response to the prompt.Instead it is a structured list of behavior/instructions (communication style, etc).
This may be a separate, unrelated issue from the gemma4/qwen3.6 truncation reported above; flagging only as additional context.