[PR #3606] fix: TUI spawn: reset BUN_OPTIONS #10709

Closed
opened 2026-02-16 18:15:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3606

State: closed
Merged: Yes


I often do something like export BUN_OPTIONS='--inspect-wait=localhost:6499/' before running bun dev.
In the opentui branch, I usually use bun dev spawn so I can get working debugger endpoints in server.ts. Before this fix, the attach subprocess spawned by bun dev spawn would inherit BUN_OPTIONS, causing a port conflict.

Even as a more general principle, I think we shouldn't blindly pass BUN_OPTIONS to subprocesses.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3606 **State:** closed **Merged:** Yes --- I often do something like `export BUN_OPTIONS='--inspect-wait=localhost:6499/'` before running `bun dev`. In the opentui branch, I usually use `bun dev spawn` so I can get working debugger endpoints in `server.ts`. Before this fix, the `attach` subprocess spawned by `bun dev spawn` would inherit `BUN_OPTIONS`, causing a port conflict. Even as a more general principle, I think we shouldn't blindly pass `BUN_OPTIONS` to subprocesses.
yindo added the pull-request label 2026-02-16 18:15:27 -05:00
yindo closed this issue 2026-02-16 18:15:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10709