Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

Fix `bun run dev:desktop` from not terminating properly on SIGINT/SIGTERM/SIGHUP (#305)

Hwanseo Choi0763a35fbc60
diff --git a/scripts/dev-runner.ts b/scripts/dev-runner.ts
index faab7d4ae..c72411e31 100644
--- a/scripts/dev-runner.ts
+++ b/scripts/dev-runner.ts
@@ -455,6 +455,11 @@ export function runDevRunnerWithInput(input: DevRunnerCliInput) {
stderr: "inherit",
env,
extendEnv: false,
+ // Keep turbo in the same process group so terminal signals (Ctrl+C)
+ // reach it directly. Effect defaults to detached: true on non-Windows,
+ // which would put turbo in a new group and require manual forwarding.
+ detached: false,
+ forceKillAfter: "1500 millis",
},
);