Bun crash when /exiting #3724

Open
opened 2026-02-16 17:41:14 -05:00 by yindo · 3 comments
Owner

Originally created by @ramarivera on GitHub (Dec 21, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

============================================================
Bun v1.3.5 (1e86cebd) macOS Silicon
macOS v26.2
CPU: fp aes crc32 atomics
Args: "/opt/homebrew/Cellar/opencode/1.0.176/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode" "--user-agent=opencode/1.0.176" "--"
Features: Bun.stderr(4) Bun.stdin(4) Bun.stdout(4) abort_signal(3) bunfig fetch(58) http_server jsc shell(86) spawn(67) standalone_executable transpiler_cache(8) tsconfig tsconfig_paths workers_spawned(2) workers_terminated napi_module_register(2) process_dlopen(3) exited
Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:readline" "node:readline/promises" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:worker_threads" "undici" "node-fetch"
Elapsed: 41587ms | User: 5880ms | Sys: 1301ms
RSS: 0.52GB | Peak: 0.71GB | Commit: 0.71GB | Faults: 3698 | Machine: 34.36GB

panic(main thread): A C++ exception occurred
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

 https://bun.report/1.3.5/Ma11e86cebm3nQz6339/Duk9r8C2zjm9CurqzqB____2+pBuo4/B+y00M2w52jBu2n69C+z1thC2yp7mCu9xyjB_mrsk+C___A0eNpzVHDW1lZIrUhOLSjJzM9TyE9OLi0qSk0BAF13CGE

OpenCode version

No response

Steps to reproduce

  1. Open opencode
  2. /exit
  3. boom -> bun crash

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @ramarivera on GitHub (Dec 21, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description ``` ============================================================ Bun v1.3.5 (1e86cebd) macOS Silicon macOS v26.2 CPU: fp aes crc32 atomics Args: "/opt/homebrew/Cellar/opencode/1.0.176/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-arm64/bin/opencode" "--user-agent=opencode/1.0.176" "--" Features: Bun.stderr(4) Bun.stdin(4) Bun.stdout(4) abort_signal(3) bunfig fetch(58) http_server jsc shell(86) spawn(67) standalone_executable transpiler_cache(8) tsconfig tsconfig_paths workers_spawned(2) workers_terminated napi_module_register(2) process_dlopen(3) exited Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:readline" "node:readline/promises" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:worker_threads" "undici" "node-fetch" Elapsed: 41587ms | User: 5880ms | Sys: 1301ms RSS: 0.52GB | Peak: 0.71GB | Commit: 0.71GB | Faults: 3698 | Machine: 34.36GB panic(main thread): A C++ exception occurred oh no: Bun has crashed. This indicates a bug in Bun, not your code. To send a redacted crash report to Bun's team, please file a GitHub issue using the link below: https://bun.report/1.3.5/Ma11e86cebm3nQz6339/Duk9r8C2zjm9CurqzqB____2+pBuo4/B+y00M2w52jBu2n69C+z1thC2yp7mCu9xyjB_mrsk+C___A0eNpzVHDW1lZIrUhOLSjJzM9TyE9OLi0qSk0BAF13CGE ``` ### OpenCode version _No response_ ### Steps to reproduce 1. Open opencode 2. /exit 3. boom -> bun crash ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:41:14 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 21, 2025):

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

  • #5070: bug: exiting tui on windows has improper exit sequence handling
  • #4834: Crash After Exiting Editor
  • #1810: /exit hangs after new session

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

@github-actions[bot] commented on GitHub (Dec 21, 2025): This issue might be a duplicate of existing issues. Please check: - #5070: bug: exiting tui on windows has improper exit sequence handling - #4834: Crash After Exiting Editor - #1810: /exit hangs after new session Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 21, 2025):

looks like it says its a bun bug, do you mind opening the issue on bun?

@rekram1-node commented on GitHub (Dec 21, 2025): looks like it says its a bun bug, do you mind opening the issue on bun?
Author
Owner

@erskingardner commented on GitHub (Jan 30, 2026):

Bun is now at 1.3.8 - can we get the opencode bundled version updated to see if that fixes this crash?

@erskingardner commented on GitHub (Jan 30, 2026): Bun is now at 1.3.8 - can we get the opencode bundled version updated to see if that fixes this crash?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3724