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
OpenCode Go: GPT-5.6 Luna truncates streaming tool-call responses #40888
GPT-5.6 Luna through the OpenCode Go provider fails when a request uses streaming together with tool definitions. The upstream stream emits response.created and then fails or terminates during a tool call. The same model works when the request is non-streaming/buffered.
Adapter: OpenAI-compatible chat adapter; same behavior observed through a Responses adapter
Reproduction matrix
Request
Result
stream:false + tools
Works
stream:true + no tools
Works
stream:true + tools
Fails with HTTP 502 / truncated tool-call stream
Observed error: upstream stream ended mid tool call without a terminal signal — possible truncation
Expected behavior
A streaming tool request should produce a complete terminal tool-call event sequence, or return a normal structured API error.
Workaround
Buffer upstream (stream:false) and reframe the completed response as downstream SSE. This removes token-by-token output but allows the tool loop to complete.
Plugins
OpenCode Go provider (openai-chat adapter); OpenCodex 2.10.2
OpenCode version
OpenCode Go endpoint; OpenCodex 2.10.2 client/proxy
Steps to reproduce
Send a request to the OpenCode Go endpoint using model gpt-5.6-luna, at least one function tool, and streaming enabled.
Observe response.created, followed by HTTP 502 or stream termination during the tool call.
Repeat with stream:false + the same tool: it completes.
Activity
github-actions commentedon Oct 7, 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.