opencode hangs until it eventually times out #3027

Closed
opened 2026-02-16 17:38:17 -05:00 by yindo · 13 comments
Owner

Originally created by @Salloxy on GitHub (Nov 21, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

Image Image

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @Salloxy on GitHub (Nov 21, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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 <img width="1099" height="617" alt="Image" src="https://github.com/user-attachments/assets/9bda0681-277a-49f2-94ab-c0deda2a6a14" /> <img width="1091" height="612" alt="Image" src="https://github.com/user-attachments/assets/6a430633-a96a-402b-b0ca-e7780be6a0bb" /> ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the bug label 2026-02-16 17:38:17 -05:00
yindo closed this issue 2026-02-16 17:38:17 -05:00
Author
Owner

@rekram1-node commented on GitHub (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

@rekram1-node commented on GitHub (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
Author
Owner

@Salloxy commented on GitHub (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

@Salloxy commented on GitHub (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
Author
Owner

@rekram1-node commented on GitHub (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

@rekram1-node commented on GitHub (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
Author
Owner

@Salloxy commented on GitHub (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.

@Salloxy commented on GitHub (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.
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

hm

@rekram1-node commented on GitHub (Nov 21, 2025): hm
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

can u export or share a session plz?

@rekram1-node commented on GitHub (Nov 21, 2025): can u export or share a session plz?
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

opencode export > out.json

@rekram1-node commented on GitHub (Nov 21, 2025): opencode export > out.json
Author
Owner

@Salloxy commented on GitHub (Nov 21, 2025):

2025-11-21T212841.log

https://opencode.ai/s/dYW3krrz

session.json

@Salloxy commented on GitHub (Nov 21, 2025): [2025-11-21T212841.log](https://github.com/user-attachments/files/23684553/2025-11-21T212841.log) https://opencode.ai/s/dYW3krrz [session.json](https://github.com/user-attachments/files/23684626/session.json)
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

i dont see any timeout error, is there one visually?

@rekram1-node commented on GitHub (Nov 21, 2025): i dont see any timeout error, is there one visually?
Author
Owner

@nitg16 commented on GitHub (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.

@nitg16 commented on GitHub (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`.
Author
Owner

@Salloxy commented on GitHub (Nov 22, 2025):

i dont see any timeout error, is there one visually?

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?)

@Salloxy commented on GitHub (Nov 22, 2025): > i dont see any timeout error, is there one visually? 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?)
Author
Owner

@rekram1-node commented on GitHub (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

@rekram1-node commented on GitHub (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
Author
Owner

@Salloxy commented on GitHub (Nov 22, 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.

@Salloxy commented on GitHub (Nov 22, 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3027