Skip to content

opencode hangs until it eventually times out #4587

Closed

Description

@Salloxy

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 21, 2025
  2. rekram1-node commented on Nov 21, 2025

    @rekram1-node
    Contributor

    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

  3. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 21, 2025
  4. Salloxy commented on Nov 21, 2025

    @Salloxy
    Author

    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

  5. rekram1-node commented on Nov 21, 2025

    @rekram1-node
    Contributor

    @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

  6. Salloxy commented on Nov 21, 2025

    @Salloxy
    Author

    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.

  7. rekram1-node commented on Nov 21, 2025

    @rekram1-node
    Contributor

    hm

  8. rekram1-node commented on Nov 21, 2025

    @rekram1-node
    Contributor

    can u export or share a session plz?

  9. rekram1-node commented on Nov 21, 2025

    @rekram1-node
    Contributor

    opencode export > out.json

  10. self-assigned this
    on Nov 21, 2025
  11. rekram1-node commented on Nov 22, 2025

    @rekram1-node
    Contributor

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

  12. nitg16 commented on Nov 22, 2025

    @nitg16

    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.

  13. Salloxy commented on Nov 22, 2025

    @Salloxy
    Author

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

  14. rekram1-node commented on Nov 22, 2025

    @rekram1-node
    Contributor

    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

  15. Salloxy commented on Nov 23, 2025

    @Salloxy
    Author

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions