opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Bun crashes when OC subagent tries to invoke subagent

Open matdev83 opened this issue 2 weeks ago • 2 comments

Description

Sorry, I didn't note the exact exception, but it was telling that this is exception in the Bun itself, not in the client code. BUT: I noticed it only happens when subagents are trying to spawn another subagent.

OpenCode version

OpenCode 1.0.216

Steps to reproduce

Be on Windows 10, Run OpenCode 1.0.216, Use workflow where subagent tries to spawn a subagent, Not always, but often OC crashes due to the Bun exception.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

matdev83 avatar Jan 02 '26 21:01 matdev83

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

  • #5901: Bun crash in the middle of a response (Windows crash)
  • #3267: auto update causes: Bun segmentation fault (Windows) - Bun crash on Windows platform
  • #6488: Bash Fork Issues - Investigation Included (Windows fork/process spawning issues that could be related to subagent invocation)

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

github-actions[bot] avatar Jan 02 '26 21:01 github-actions[bot]

I managed to capture a screenshot:

Image

matdev83 avatar Jan 02 '26 22:01 matdev83