Repository navigation
opencode hangs until it eventually times out #4587
Description
Description
it only hangs when it trying to use tools but when just answering questions it doesn't hang. Removing all MCP servers does not fix.
logs:
INFO 2025-11-21T11:24:15 +3ms service=bus type=message.updated publishing
INFO 2025-11-21T11:24:15 +1ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:15 +1ms service=bus type=session.updated publishing
INFO 2025-11-21T11:24:15 +1ms service=bus type=session.status publishing
INFO 2025-11-21T11:24:15 +0ms service=session.prompt step=0 sessionID=ses_559d79ebaffeI9V2BwYgbGvf4i loop
INFO 2025-11-21T11:24:15 +3ms service=provider providerID=nanogpt modelID=z-ai/glm-4.6 getModel
INFO 2025-11-21T11:24:15 +0ms service=provider status=started providerID=nanogpt getSDK
INFO 2025-11-21T11:24:15 +0ms service=provider providerID=nanogpt modelID=z-ai/glm-4.6 getModel
INFO 2025-11-21T11:24:15 +0ms service=provider status=started providerID=nanogpt getSDK
INFO 2025-11-21T11:24:15 +117ms service=provider status=completed duration=117 providerID=nanogpt getSDK
INFO 2025-11-21T11:24:15 +1ms service=provider providerID=nanogpt modelID=z-ai/glm-4.6 found
INFO 2025-11-21T11:24:15 +1ms service=provider status=completed duration=119 providerID=nanogpt getSDK
INFO 2025-11-21T11:24:15 +1ms service=provider providerID=nanogpt modelID=z-ai/glm-4.6 found
INFO 2025-11-21T11:24:15 +6ms service=bus type=message.updated publishing
INFO 2025-11-21T11:24:15 +10ms service=session.processor process
INFO 2025-11-21T11:24:15 +4ms service=bus type=session.status publishing
INFO 2025-11-21T11:24:15 +3ms service=bus type=message.updated publishing
INFO 2025-11-21T11:24:15 +1ms service=bus type=session.updated publishing
INFO 2025-11-21T11:24:15 +0ms service=bus type=session.diff publishing
INFO 2025-11-21T11:24:18 +2708ms service=bus type=session.updated publishing
INFO 2025-11-21T11:24:18 +1ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +2ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +0ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +84ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +10ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +41ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +8ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +1ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +0ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +12ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +16ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +23ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +22ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +65ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +206ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +9ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +1ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +0ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +1ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +0ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +1ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +0ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +1ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +36ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +9ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +1ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +0ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:18 +8ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +16ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +22ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +75ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +11ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +43ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +12ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +0ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +1ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +12ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +23ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:24:19 +22ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:25:49 +90305ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:25:49 +3ms service=bus type=message.part.updated publishing
INFO 2025-11-21T11:25:49 +0ms service=bus type=message.updated publishing
INFO 2025-11-21T11:25:49 +1ms service=bus type=message.updated publishing
INFO 2025-11-21T11:25:49 +3ms service=bus type=message.updated publishing
INFO 2025-11-21T11:25:49 +0ms service=bus type=session.status publishing
INFO 2025-11-21T11:25:49 +0ms service=session.prompt step=1 sessionID=ses_559d79ebaffeI9V2BwYgbGvf4i loop
INFO 2025-11-21T11:25:49 +2ms service=bus type=message.updated publishing
INFO 2025-11-21T11:25:49 +0ms service=bus type=session.updated publishing
INFO 2025-11-21T11:25:49 +0ms service=bus type=session.diff publishing
INFO 2025-11-21T11:25:49 +1ms service=session.prompt sessionID=ses_559d79ebaffeI9V2BwYgbGvf4i exiting loop
INFO 2025-11-21T11:25:49 +0ms service=session.compaction pruning
INFO 2025-11-21T11:25:49 +2ms service=session.prompt sessionID=ses_559d79ebaffeI9V2BwYgbGvf4i cancel
INFO 2025-11-21T11:25:49 +0ms service=bus type=session.status publishing
INFO 2025-11-21T11:25:49 +0ms service=bus type=session.idle publishing
INFO 2025-11-21T11:25:49 +1ms service=session.compaction pruned=0 total=0 found
OpenCode version
v1.0.85
Steps to reproduce
No response
Screenshot and/or share link
Operating System
Windows 11
Terminal
Windows Terminal
Activity
rekram1-node commentedon Nov 21, 2025
Zai has a lottt of traffic, requests to it can hang sometimes. I guess we can be smarter with dropping connections and retrying but this is a common thing I hear about that provider specifically
Salloxy commentedon Nov 21, 2025
I use nano-gpt which usually routes to chutes, I don't have this issue when using other tools (e.g. kilocode). I believe that since the tokens per second is so low, when it tries to write a large file, it just times out in the middle. If there's a way to figure out what does this timeout we can either turn this off or set the timeout higher
rekram1-node commentedon Nov 21, 2025
@Salloxy whens the last time you saw the timeout, I recently disabled it in one of the past few versions maybe try again and lmk if u keep seeing it
Salloxy commentedon Nov 21, 2025
I'm seeing it right now, it happens every time opencode tries to write a large file, it just shows the building indicator for 90 seconds and then stops.
rekram1-node commentedon Nov 21, 2025
hm
rekram1-node commentedon Nov 21, 2025
can u export or share a session plz?
rekram1-node commentedon Nov 21, 2025
opencode export > out.json
Salloxy commentedon Nov 21, 2025
2025-11-21T212841.log
https://opencode.ai/s/dYW3krrz
session.json
rekram1-node commentedon Nov 22, 2025
i dont see any timeout error, is there one visually?
nitg16 commentedon Nov 22, 2025
Having the same issue. Opencode randomly becomes unresponsive after calling a tool and giving approval. Started happening after
v1.0.85.Once the issue is encountered, hitting enter key doesn't work. Slash commands doesn't work. Even ctrl+c doesn't work. The animated AI message indicator continues to progress, but everything else is unresponsive.
Only ctrl+p command popup works with exit command.
Re-entering the session after exiting mentions:
Tool execution aborted.Salloxy commentedon Nov 22, 2025
I don't see any visual error, after 90 seconds of showing the visual animations that it is working on something, it simply disappears. When I ask it to do any task that would take under 90 seconds to complete (write a smaller file, edits etc.) it completes the task with no issues. I had this issue for a long time already so it's not version specific (it might even be nano-gpt timing me out?)
rekram1-node commentedon Nov 22, 2025
im unfamiliar with nano gpt so im not really sure how they handle this stuff. Other providers, if they encounter an error, will show it to you
Salloxy commentedon Nov 23, 2025
I tested Cline and see I have the same issues using nanogpt with Cline, will say this is a provider issue and close the issue.