Skip to content

opencode command cli cannot be started #11236

Closed

Description

@zengws-dz

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:
#8785

Operating System

Windows11

Terminal

powershell 7.5.4

Activity

  1. github-actions commented on Jan 30, 2026

    @github-actions
    Contributor

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

    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.

  2. zengws-dz commented on Jan 30, 2026

    @zengws-dz
    Author

    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.

  3. github-actions commented on Mar 31, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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 workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions