Opencode hangs when communicating with venice #7884

Open
opened 2026-02-16 18:08:34 -05:00 by yindo · 3 comments
Owner

Originally created by @joshleblanc on GitHub (Jan 28, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I don't know what causes this, but creating a bunfig.toml file and placing it in ~/.config/opencode/bunfig.toml and ~/.cache/opencode/bunfig.toml with the content

[install.cache]
disable = true

resolves the issue. You need to re-add it to ~/.cache/opencode every time it updates.

Related:
https://github.com/oven-sh/bun/issues/19936#issuecomment-3705754754
https://github.com/oven-sh/bun/issues/25624#issuecomment-3707327914
https://github.com/oven-sh/bun/issues/22846

Plugins

No response

OpenCode version

1.1.40

Steps to reproduce

  1. Select a venice model
  2. Ask it anything

It will hang on this screen forever. Here's the log

2026-01-28T231322.log

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @joshleblanc on GitHub (Jan 28, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I don't know what causes this, but creating a `bunfig.toml` file and placing it in `~/.config/opencode/bunfig.toml` and `~/.cache/opencode/bunfig.toml` with the content ``` [install.cache] disable = true ``` resolves the issue. You need to re-add it to `~/.cache/opencode` every time it updates. Related: https://github.com/oven-sh/bun/issues/19936#issuecomment-3705754754 https://github.com/oven-sh/bun/issues/25624#issuecomment-3707327914 https://github.com/oven-sh/bun/issues/22846 ### Plugins _No response_ ### OpenCode version 1.1.40 ### Steps to reproduce 1. Select a venice model 2. Ask it anything It will hang on this screen forever. Here's the log [2026-01-28T231322.log](https://github.com/user-attachments/files/24923766/2026-01-28T231322.log) ### Screenshot and/or share link <img width="346" height="487" alt="Image" src="https://github.com/user-attachments/assets/5a5b61ff-ccb1-4d85-8c98-afca5baba2b3" /> ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 18:08:34 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 28, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #9108: Models from venice provider doesn't work - Similar Venice API communication issues with Bad Request errors
  • #7097: Custom Agent sending agent name in OpenAI Compatible request body - Another Venice provider 400 error, also on Windows platform
  • #4255: OpenCode v1.0.25 Hangs Indefinitely with LM Studio + Qwen Models Due to Empty tool_calls Array - Similar hanging symptom when tool_calls array handling is problematic

Additionally, the root cause may be related to Bun cache issues on Windows (Bun #22846, #25624) which you've already referenced. The workaround of disabling the cache in bunfig.toml suggests this is a Bun/dependency issue rather than pure OpenCode logic.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #9108: Models from venice provider doesn't work - Similar Venice API communication issues with Bad Request errors - #7097: Custom Agent sending agent name in OpenAI Compatible request body - Another Venice provider 400 error, also on Windows platform - #4255: OpenCode v1.0.25 Hangs Indefinitely with LM Studio + Qwen Models Due to Empty tool_calls Array - Similar hanging symptom when tool_calls array handling is problematic Additionally, the root cause may be related to Bun cache issues on Windows (Bun #22846, #25624) which you've already referenced. The workaround of disabling the cache in bunfig.toml suggests this is a Bun/dependency issue rather than pure OpenCode logic. Feel free to ignore if none of these address your specific case.
Author
Owner

@yashrajd commented on GitHub (Jan 28, 2026):

the github bot mentions Windows, but the issue occurred for me on macOS using opencode Desktop and the suggested fix seems to've fixed it.

@yashrajd commented on GitHub (Jan 28, 2026): the github bot mentions Windows, but the issue occurred for me on macOS using opencode Desktop and the suggested fix seems to've fixed it.
Author
Owner

@victorhramos-dev commented on GitHub (Feb 4, 2026):

its happens often with z-ai and minimax coding plan also

@victorhramos-dev commented on GitHub (Feb 4, 2026): its happens often with z-ai and minimax coding plan also
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7884