opencode
opencode copied to clipboard
Bun crashes when OC subagent tries to invoke subagent
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
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.
I managed to capture a screenshot: