[Windows] Upgrade embedded Bun runtime from v1.3.5 — LSP broken due to spawn segfault #8241

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

Originally created by @EnvyGithub on GitHub (Feb 1, 2026).

Originally assigned to: @thdxr on GitHub.

Description

opencode v1.1.48 ships a standalone executable (opencode.exe) with Bun v1.3.5 embedded. This version has a known segmentation fault bug on Windows when spawning child processes (e.g., LSP servers).

Users cannot upgrade the embedded Bun runtime — it's baked into the binary via bun build --compile. Even upgrading system Bun to v1.3.8 has no effect.

Impact

  • All LSP functionality is broken on Windows for opencode + oh-my-opencode users
  • oh-my-opencode has added a safety check that blocks LSP startup entirely when Bun < 1.3.6 is detected
  • Since the embedded version is always 1.3.5, LSP is permanently disabled with no user workaround

Evidence

# Binary contains hardcoded Bun v1.3.5
$ strings opencode.exe | grep "Bun v"
Bun v1.3.5
Bun v1.3.5

# opencode version
$ opencode --version
1.1.48

Request

Please upgrade the embedded Bun runtime in the standalone executable to v1.3.6 or later in the next release.

Related Issues

Environment

  • opencode: v1.1.48
  • Embedded Bun: v1.3.5
  • OS: Windows 11 x64
Originally created by @EnvyGithub on GitHub (Feb 1, 2026). Originally assigned to: @thdxr on GitHub. ## Description opencode v1.1.48 ships a standalone executable (`opencode.exe`) with **Bun v1.3.5 embedded**. This version has a known segmentation fault bug on Windows when spawning child processes (e.g., LSP servers). **Users cannot upgrade the embedded Bun runtime** — it's baked into the binary via `bun build --compile`. Even upgrading system Bun to v1.3.8 has no effect. ## Impact - **All LSP functionality is broken** on Windows for opencode + oh-my-opencode users - oh-my-opencode has added a safety check that blocks LSP startup entirely when Bun < 1.3.6 is detected - Since the embedded version is always 1.3.5, LSP is **permanently disabled** with no user workaround ## Evidence ``` # Binary contains hardcoded Bun v1.3.5 $ strings opencode.exe | grep "Bun v" Bun v1.3.5 Bun v1.3.5 # opencode version $ opencode --version 1.1.48 ``` ## Request Please upgrade the embedded Bun runtime in the standalone executable to v1.3.6 or later in the next release. ## Related Issues - oven-sh/bun#25798 — Windows spawn segfault in Bun v1.3.5 - oven-sh/bun#26026 — Same segfault, different reporter - code-yeongyu/oh-my-opencode#1047 — LSP crash on Windows - code-yeongyu/oh-my-opencode#1366 — LSP permanently blocked due to embedded Bun version ## Environment - opencode: v1.1.48 - Embedded Bun: v1.3.5 - OS: Windows 11 x64
yindo added the windows label 2026-02-16 18:09:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 1, 2026):

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

  • #11619: LSP server cannot be started safely — Identical issue with same Bun v1.3.5 spawn error on Windows
  • #11404: Suggestion to Update the BUILT-IN BUN VERSION in the Binary Package to Fix OpenCode Issues Caused by Bun bugs — Same embedded Bun 1.3.5 issue reported in v1.1.47
  • #11339: Segmentation fault (0xFFFFFFFFFFFFFFFF) in Bun 1.3.5 during Planner execution on Windows — Same segfault bug affecting child process spawning
  • #11260: LSP spawn error when inspecting Python files on Windows — Windows LSP spawn failure for pyright-langserver, same underlying Bun v1.3.5 issue

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

@github-actions[bot] commented on GitHub (Feb 1, 2026): This issue might be a duplicate of existing issues. Please check: - #11619: LSP server cannot be started safely — Identical issue with same Bun v1.3.5 spawn error on Windows - #11404: Suggestion to Update the BUILT-IN BUN VERSION in the Binary Package to Fix OpenCode Issues Caused by Bun bugs — Same embedded Bun 1.3.5 issue reported in v1.1.47 - #11339: Segmentation fault (0xFFFFFFFFFFFFFFFF) in Bun 1.3.5 during Planner execution on Windows — Same segfault bug affecting child process spawning - #11260: LSP spawn error when inspecting Python files on Windows — Windows LSP spawn failure for pyright-langserver, same underlying Bun v1.3.5 issue 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#8241