opencode command cli cannot be started #8000

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

Originally created by @zengws-dz on GitHub (Jan 29, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I used OpenCode (v1.1.42) in PowerShell 7.5.4 last night and successfully exited and shut down my computer. 
Today, after turning on my computer, I tried using 'npm i -g opencode-ai@latest' The command updated OpenCode to the latest version, and the update was successful. 
However, when I tried to launch the command-line client using the OpenCode command, I encountered a message that Windows prohibits calling dynamic link libraries related to Bun. 
Afterwards, I tried to update Bun to the latest version 1.3.8, and the update was also successful. 
However, I found that OpenCode seemed to be using its built-in version 1.3.5 Bun. My attempt to update Bun was equivalent to no effect on this issue; Also, while using OpenCode yesterday, I encountered the same issue of bun crashes that others have encountered. Is there any way to alleviate this problem? I am completely unable to open OpenCode now

Plugins

oh-my-opencode 3.1.7

OpenCode version

1.1.42~1.1.43

Steps to reproduce

No response

Screenshot and/or share link

Image

yesterday bun crashed the same issues:
https://github.com/anomalyco/opencode/issues/8785

Operating System

Windows11

Terminal

powershell 7.5.4

Originally created by @zengws-dz on GitHub (Jan 29, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I used OpenCode (v1.1.42) in PowerShell 7.5.4 last night and successfully exited and shut down my computer. Today, after turning on my computer, I tried using 'npm i -g opencode-ai@latest' The command updated OpenCode to the latest version, and the update was successful. However, when I tried to launch the command-line client using the OpenCode command, I encountered a message that Windows prohibits calling dynamic link libraries related to Bun. Afterwards, I tried to update Bun to the latest version 1.3.8, and the update was also successful. However, I found that OpenCode seemed to be using its built-in version 1.3.5 Bun. My attempt to update Bun was equivalent to no effect on this issue; Also, while using OpenCode yesterday, I encountered the same issue of bun crashes that others have encountered. Is there any way to alleviate this problem? I am completely unable to open OpenCode now ### Plugins oh-my-opencode 3.1.7 ### OpenCode version 1.1.42~1.1.43 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="621" height="305" alt="Image" src="https://github.com/user-attachments/assets/8527edf0-0185-4d3a-82a4-e658d122d926" /> yesterday bun crashed the same issues: https://github.com/anomalyco/opencode/issues/8785 ### Operating System Windows11 ### Terminal powershell 7.5.4
yindo added the windowsbug labels 2026-02-16 18:08:53 -05:00
Author
Owner

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

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

  • #8785: Bun has crashed (similar Bun crash on Windows with kernel32.dll errors)
  • #10992: windows system opencode bug (Windows 11 system-level Bun crash with similar KERNEL32.DLL error)
  • #9577: White screen on launch (Windows OpenCode startup failure)

The common thread appears to be Bun crashes on Windows related to dynamic link libraries (KERNEL32.DLL, MozartBreathCore.dll, etc.). Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 29, 2026): This issue might be a duplicate of existing issues. Please check: - #8785: Bun has crashed (similar Bun crash on Windows with kernel32.dll errors) - #10992: windows system opencode bug (Windows 11 system-level Bun crash with similar KERNEL32.DLL error) - #9577: White screen on launch (Windows OpenCode startup failure) The common thread appears to be Bun crashes on Windows related to dynamic link libraries (KERNEL32.DLL, MozartBreathCore.dll, etc.). Feel free to ignore if none of these address your specific case.
Author
Owner

@zengws-dz commented on GitHub (Jan 29, 2026):

I have tried rolling back opencode to version 1.1.42 using the command 'npm i -g opencode-ai@v1.1.42', but when I started opencode, I still received an error message stating that the relevant functions of the bun were disabled.

@zengws-dz commented on GitHub (Jan 29, 2026): I have tried rolling back opencode to version 1.1.42 using the command 'npm i -g opencode-ai@v1.1.42', but when I started opencode, I still received an error message stating that the relevant functions of the bun were disabled.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8000