Description
When using local thinking models on Ollama (e.g. Qwen3.6-35b), the model appears
to think but then stops and returns no response.
The @ai-sdk/openai-compatible SDK extracts the reasoning field from the response and re-sends it as reasoning_content in message history on the next turn. Ollama does not accept reasoning_content in
message history, causing the conversation to hang with no output returned to the user.
Plugins
None
OpenCode version
1.17.13
Steps to reproduce
- Configure an Ollama provider with a thinking model (e.g. Qwen3.6-35b)
- Start a session and send a message, like: "Explain in detail how distributed consensus algorithms work. Compare PBFT, Tendermint, and Raft protocols, their tradeoffs, fault tolerance models, and real-world applications. Walk through a concrete example of message ordering in each protocol."
- Note that opencode just ends - as if it responded to you.
Screenshot and/or share link
No response
Operating System
Ubuntu 24.04 LTS
Terminal
Ghostty
Description
When using local thinking models on Ollama (e.g. Qwen3.6-35b), the model appears
to think but then stops and returns no response.
The @ai-sdk/openai-compatible SDK extracts the reasoning field from the response and re-sends it as reasoning_content in message history on the next turn. Ollama does not accept reasoning_content in
message history, causing the conversation to hang with no output returned to the user.
Plugins
None
OpenCode version
1.17.13
Steps to reproduce
Screenshot and/or share link
No response
Operating System
Ubuntu 24.04 LTS
Terminal
Ghostty