@devries-cameron20 / t3code-1 / commits / 1113e4b510
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(scripts): `vp run dev --share` removes its tailnet mapping when the terminal closes (#35534)

Julius Marminge committed Nov 12, 2026 at 11:07 UTC 1113e4b510da0983db7cab202fd8b4ce281cad8d
1 file changed +3
scripts/dev-runner.ts
+3
@@ -992,6 +992,9 @@ const cliRuntimeLayer = Layer.mergeAll(
992 );
993
994 if (import.meta.main) {
995 + // runMain interrupts (running finalizers such as the --share unmapping) only
996 + // on SIGINT/SIGTERM; a closed terminal or dropped SSH session sends SIGHUP.
997 + process.on("SIGHUP", () => process.kill(process.pid, "SIGTERM"));
998 Command.run(devRunnerCli, { version: "0.0.0" }).pipe(
999 Effect.scoped,
1000 Effect.provide(cliRuntimeLayer),