Bun add hangs forever #7790

Open
opened 2026-02-16 18:08:13 -05:00 by yindo · 1 comment
Owner

Originally created by @dpuyosa on GitHub (Jan 27, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Sometimes bun gets stuck when updating or downloading packages. Mostly the provider npm package.
https://github.com/anomalyco/opencode/blob/898118bafbf8a12c0ef9d6673d36305472991906/packages/opencode/src/bun/index.ts#L103

Having the --no-cache fixes the issue but makes this run slower.
https://github.com/anomalyco/opencode/blob/898118bafbf8a12c0ef9d6673d36305472991906/packages/opencode/src/bun/index.ts#L93

Could there be a way to set a timeout for this, and in that case run again with --no-cache option? That way it will usually run at default speed, but if failing, the app wont get stuck forever

Plugins

No response

OpenCode version

v1.1.36

Steps to reproduce

Only sometimes:

  • Chat with a provider that is not included with OpenCode

Screenshot and/or share link

No response

Operating System

Windows 10

Terminal

cmder

Originally created by @dpuyosa on GitHub (Jan 27, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Sometimes bun gets stuck when updating or downloading packages. Mostly the provider npm package. https://github.com/anomalyco/opencode/blob/898118bafbf8a12c0ef9d6673d36305472991906/packages/opencode/src/bun/index.ts#L103 Having the `--no-cache` fixes the issue but makes this run slower. https://github.com/anomalyco/opencode/blob/898118bafbf8a12c0ef9d6673d36305472991906/packages/opencode/src/bun/index.ts#L93 Could there be a way to set a timeout for this, and in that case run again with `--no-cache` option? That way it will usually run at default speed, but if failing, the app wont get stuck forever ### Plugins _No response_ ### OpenCode version v1.1.36 ### Steps to reproduce Only sometimes: - Chat with a provider that is not included with OpenCode ### Screenshot and/or share link _No response_ ### Operating System Windows 10 ### Terminal cmder
yindo added the windowsbugperf labels 2026-02-16 18:08:14 -05:00
Author
Owner

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

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

  • #10630: hang when ask questions to opencode with the newest version and local LLM by vllm(0.11.2)
  • #10812: OpenCode hangs forever during startup in project with TypeScript error
  • #10614: opencode auth login throw BunInstallFailedError

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

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: - #10630: hang when ask questions to opencode with the newest version and local LLM by vllm(0.11.2) - #10812: OpenCode hangs forever during startup in project with TypeScript error - #10614: opencode auth login throw `BunInstallFailedError` Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7790