Skip to content

The open source coding agent.

TypeScript

fix: TUI spawn: reset BUN_OPTIONS (#3606)

Haris Gušićca5126e24dbf
diff --git a/packages/opencode/src/cli/cmd/tui/spawn.ts b/packages/opencode/src/cli/cmd/tui/spawn.ts
index 29c9a35906c..5be64ee98a4 100644
--- a/packages/opencode/src/cli/cmd/tui/spawn.ts
+++ b/packages/opencode/src/cli/cmd/tui/spawn.ts
@@ -48,6 +48,10 @@ export const TuiSpawnCommand = cmd({
stdout: "inherit",
stderr: "inherit",
stdin: "inherit",
+ env: {
+ ...process.env,
+ BUN_OPTIONS: "",
+ }
})
await proc.exited
await Instance.disposeAll()