-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
Description
Description
The standalone binary produced by bun --bun ./script/build.ts --single --skip-install is broken on current dev. bun run dev works correctly.
This is release-blocking. script/build.ts --single is used by publish.ts to produce binaries for all distribution channels: npm, Homebrew, AUR, Docker, and Nix.
Bisect result
05d3e65f7(feat: enable GitLab Agent Platform) → worksd70099b05(fix: apply Layer.fresh at instance service definition site — fix: apply Layer.fresh at instance service definition site #18418, @kitlangton) → broken — crashes withTypeError: undefined is not an object (evaluating 'Snapshot2.FileDiff.array')214a6c6cf(fix: switch consumers to service imports to break bundle cycles — fix: switch consumers to service imports to break bundle cycles #18438) → broken — no longer crashes but black screen + freeze instead
The service/adapter split in d70099b05 introduces circular dependencies that break the bundled binary. PR #18438 attempts to fix the cycles but only turns the crash into a silent freeze.
Error at d70099b05
TypeError: undefined is not an object (evaluating 'Snapshot2.FileDiff.array')
at <anonymous> (/$bunfs/root/src/index.js:121277:34)
at <anonymous> (/$bunfs/root/src/index.js:121752:5)
Steps to reproduce
cd packages/opencode
bun --bun ./script/build.ts --single --skip-install
./dist/opencode-*/bin/opencodeOpenCode version
dev @ 129fe1e3
Operating System
macOS 26.3.1 (aarch64), Linux x86_64
Terminal
Alacritty 0.16.1, Ghostty
Reactions are currently unavailable