You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: opencode-go gateway returns reasoning_content instead of content in streaming responses #37635
OpenCode Version: 1.18.3 OS: Windows 10 Terminal: PowerShell 7.6
Summary
The opencode-go gateway wraps ALL model streaming responses in a Chain-of-Thought wrapper, putting the assistant's actual output in delta.reasoning_content instead of delta.content. This causes the agent loop to receive empty content and exit immediately ("exiting loop" after step 1).
Steps to reproduce
opencode providers login > authenticate with opencode-go API key
opencode -m opencode-go/grok-4.5 (or any opencode-go model)
Send any message, e.g. "Say hello"
Observe: session exits after ~2s with no response
Root cause
Direct API test of the opencode-go gateway streaming endpoint:
POST https://opencode.ai/zen/go/v1/chat/completions
{"model":"grok-4.5","messages":[{"role":"user","content":"What is 1+1? Reply ONLY with the number."}],"max_tokens":200,"stream":true}
Actual output — every chunk uses reasoning_content, the actual answer appears only in the final chunk as a single content delta:
Activity
github-actions commentedon Jul 18, 2026
This issue might be a duplicate of existing issues. Please check:
reasoning_contentvscontentmismatch in streaming responses). The root cause differs — DeepSeek silently stops executing (interleaved reasoning_content dropped in tool call messages) #35689 is about client-side normalization droppingreasoning_contenton tool-call messages, while this issue reports the opencode-go gateway placing the actual response text inreasoning_contentinstead ofcontentfor all streaming chunks — but the symptoms and affected field are the same. The maintainers may want to evaluate whether these are related or require separate fixes.github-actions commentedon Sep 18, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.