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
Plan/Build mode sometimes hangs after long reasoning and never emits the final response #37609
For the past 2–3 days, I've been experiencing an issue where OpenCode sometimes hangs after the model finishes a long reasoning phase.
The model successfully completes its Thought process, but never emits the final assistant response.
There is no error message or timeout. The UI simply waits indefinitely.
If I send another user message (for example: "kết quả sao rồi", "continue", or "please answer"), the model immediately returns the response that should have been sent earlier.
Environment
OpenCode: 1.18.3
OS: Windows 11 (latest updates)
Terminal:
Windows Terminal
WezTerm
Shell:
PowerShell 7 (installed via winget)
Running natively on Windows (not WSL)
Models tested
This happens with multiple providers:
DeepSeek V4 Flash Free (OpenCode Zen)
My own API provider (OpenAI, Anthropic)
Because it occurs with different providers, it does not appear to be provider-specific.
Reproduction
The issue is not reproducible with every prompt.
However, it happens much more frequently when the model spends a long time in the Thought phase (for example 3m+ minutes).
Typical flow:
Start Plan mode or Build mode.
Send a relatively complex prompt.
The model performs a long reasoning phase.
Thought completes successfully.
No final assistant response is generated.
The session stays idle forever.
Send another user message.
The previous response immediately appears.
Expected behavior
After the Thought phase finishes, OpenCode should immediately stream the assistant response.
Actual behavior
The Thought phase completes successfully, but the assistant never starts responding.
The session appears idle until another user message is sent, which immediately causes the pending response to be emitted.
Frequency
Started about 2–3 days ago.
Only seems to happen after relatively long reasoning.
Observed in both Plan mode and Build mode.
Screenshot
In the attached screenshot, the model finished a 52-second Thought phase but never produced the response until I manually sent another message asking for the result.
Start Plan mode or Build mode.
Send a relatively complex prompt.
The model performs a long reasoning phase.
Thought completes successfully.
No final assistant response is generated.
The session stays idle forever.
Send another user message.
The previous response immediately appears.
If your issue is the same as one of the above, please add a comment there rather than opening a new report. If it is distinct, feel free to clarify what makes it different.
I also have this issue of sending a question without a response.
I found that withdrawing the conversation and requesting again may restore the response.
I used opencode desktop,GLM-5.2
Activity
github-actions commentedon Jul 18, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is the same as one of the above, please add a comment there rather than opening a new report. If it is distinct, feel free to clarify what makes it different.
GershonWang commentedon Jul 18, 2026
I also have this issue of sending a question without a response.
I found that withdrawing the conversation and requesting again may restore the response.
I used opencode desktop,GLM-5.2
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.