Uh oh!
There was an error while loading. Please reload this page.
fix(core): stop bash hanging after process exit - #42756
Conversation
The following comment was made by an LLM, it may be inaccurate: Potential related PRs found:
Why they're related: Both PRs address process completion signaling (exit vs. close events) to prevent subprocess hangs, particularly with detached processes. PR #29831 specifically mentions "Windows detached-child hang" which is the same class of issue as what PR #42756 is fixing. |
Enough1122
commented
Aug 21, 2026
Scope: the spawner's completion deferred now resolves on whichever of
|
Issue for this PR
Closes#20902
Closes#25038
Closes#28697
Closes#36342
Closes#37838
Closes#42044
Closes#42524
Type of change
What does this PR do?
Process
exitshould work same as stdiocloseso either one can finish the bash command.How did you verify your code works?
Automated tests:
Manual:
cd packages/opencode && bun dev, then run:node -e 'const {spawn}=require("node:child_process");const c=spawn("sleep",["3600"],{stdio:"inherit",detached:true});c.unref();console.log("done")'Before: see
done, but opencode hang and tool never completes.After: tool returns immediately.
Screenshots / recordings
N/A
Checklist