You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: opencode prints help and exits for *any* command. Desktop GUI fails to spawn server (1.1.12–1.1.15) #8233
On Windows, opencode starts and prints the banner, but for any command it only prints the help text and exits (including opencode, opencode ., opencode run ..., opencode serve ..., and even with --print-logs --log-level DEBUG). The Desktop GUI (Tauri) also fails to spawn the OpenCode server; its captured STDOUT shows the same help output.
This happens across multiple shells (PowerShell, Git Bash) and across versions (1.1.13 and 1.1.15). It also persists even when running the real Windows binary directly (opencode-windows-x64\bin\opencode.exe). But yesterday I could still use ohmyopencode happily, and this morning it successfully launched as well, but after an automatic update, it can no longer start properly, even reverting to a previous version and reinstalling doesn't help
Expected behavior
opencode (or opencode .) should start the TUI.
opencode run "hello" should create/run a session.
opencode serve --port 0 should start a headless server.
Desktop GUI should be able to spawn the server process.
Actual behavior
opencode prints the banner and then the global help list of commands, and exits.
opencode run ... prints only the opencode run help and exits.
opencode serve ... prints only the opencode serve help and exits.
Adding --print-logs --log-level DEBUG does not produce any additional output besides help.
Desktop GUI shows error "Failed to spawn OpenCode Server" and the captured STDOUT is just the same banner + help output.
Activity
github-actions commentedon Jan 13, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
Wenbobobo commentedon Jan 14, 2026
Wenbobobo commentedon Jan 14, 2026
it workd after codex fix the BUN_OPTIONS :)