opencode icon indicating copy to clipboard operation
opencode copied to clipboard

window install error Failed to spawn OpenCode Server

Open sunbinbin1991 opened this issue 1 week ago • 9 comments

Question

Error: Failed to spawn OpenCode Server. Logs: [STDOUT] opencode server listening on http://127.0.0.1:13947

at castError (http://tauri.localhost/assets/index-DT7g4zby.js:2:11968)
at http://tauri.localhost/assets/index-DT7g4zby.js:2:4662

sunbinbin1991 avatar Jan 13 '26 11:01 sunbinbin1991

so why this happen?

sunbinbin1991 avatar Jan 13 '26 11:01 sunbinbin1991

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

  • #7475: Error: Failed to spawn OpenCode Server. (Similar error message with server spawn failure on macOS)
  • #8149: Desktop App Failing to Start server on Windows (Windows-specific server startup failure)
  • #8160: fix(sdk): spawn fails on Windows - ENOENT for opencode command (Related spawn failure on Windows with detailed analysis)

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

github-actions[bot] avatar Jan 13 '26 11:01 github-actions[bot]

Image

huangfeixia0101 avatar Jan 13 '26 12:01 huangfeixia0101

windows desktop 64 exe version, the error from Version: 1.1.15

huangfeixia0101 avatar Jan 13 '26 12:01 huangfeixia0101

but it can be opened by cmd line in windows only desktop version has the issue

huangfeixia0101 avatar Jan 13 '26 12:01 huangfeixia0101

有解决方法了吗

NANAME-ZZ avatar Jan 13 '26 12:01 NANAME-ZZ

same issue

Image

yukiryo avatar Jan 13 '26 13:01 yukiryo

The Windows desktop app was spawning multiple Bun processes but failing to capture/manage one of them properly. This has been fixed in commit ddd9c71. Verified working on the dev desktop build. i think in next version it will be fixed

Srivathsav-max avatar Jan 13 '26 14:01 Srivathsav-max

+1

seasoncool avatar Jan 15 '26 00:01 seasoncool