Skip to content

bug: Bun runtime fails to keep child processes alive due to 'detached: true' #22612

@euxaristia

Description

@euxaristia

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.

Metadata

Metadata

Assignees

Labels

area/platformIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmthelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions