Bun crashes when OC subagent tries to invoke subagent #4109

Open
opened 2026-02-16 17:42:39 -05:00 by yindo · 2 comments
Owner

Originally created by @matdev83 on GitHub (Jan 2, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @matdev83 on GitHub (Jan 2, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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_
yindo added the windowsbug labels 2026-02-16 17:42:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 2, 2026):

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] commented on GitHub (Jan 2, 2026): 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.
Author
Owner

@matdev83 commented on GitHub (Jan 2, 2026):

I managed to capture a screenshot:

Image
@matdev83 commented on GitHub (Jan 2, 2026): I managed to capture a screenshot: <img width="1915" height="459" alt="Image" src="https://github.com/user-attachments/assets/dadddcf5-da0a-4e79-8e7c-ab413722be07" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4109