What happened?
When running the CLI under the Bun runtime on Linux/macOS, child processes (shell commands, MCP servers) are immediately terminated with SIGHUP. This is because Bun's child_process.spawn does not correctly handle the detached: true flag in the same way Node.js does, causing children to remain tied to the parent session.
What did you expect to happen?
Child processes should continue to run normally under the Bun runtime.
Client information
Linux, Bun Runtime
Additional context
Discovered while running integration tests and shell tools using the Bun runtime.
What happened?
When running the CLI under the Bun runtime on Linux/macOS, child processes (shell commands, MCP servers) are immediately terminated with
SIGHUP. This is because Bun'schild_process.spawndoes not correctly handle thedetached: trueflag in the same way Node.js does, causing children to remain tied to the parent session.What did you expect to happen?
Child processes should continue to run normally under the Bun runtime.
Client information
Linux, Bun Runtime
Additional context
Discovered while running integration tests and shell tools using the Bun runtime.