@devries-cameron20 / t3code-1 / commits / 123e5ba065
Fork 0

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

fix(server): force-stop timed out login shell probes (#7295)

Co-authored-by: hbw00111 <196409728+hbw00111@users.noreply.github.com> Co-authored-by: maria-rcks <maria@kuuro.net>

hbw00111 committed Nov 2, 2026 at 04:52 UTC 123e5ba065130767c1b06d5265597abae6282a8e
2 files changed +9
packages/shared/src/shell.test.ts
+7
@@ -135,6 +135,13 @@ describe("readEnvironmentFromLoginShell", () => {
135 SSH_AUTH_SOCK: "/tmp/secretive.sock",
136 });
137 expect(execFile).toHaveBeenCalledTimes(1);
138 + expect(execFile).toHaveBeenCalledWith("/bin/zsh", expect.any(Array), {
139 + encoding: "utf8",
140 + timeout: 5000,
141 + killSignal: "SIGKILL",
142 + detached: true,
143 + stdio: ["ignore", "pipe", "ignore"],
144 + });
145 });
146
147 it("omits environment variables that are missing or empty", () => {
packages/shared/src/shell.ts
+2
@@ -24,6 +24,7 @@ type ExecFileSyncLike = (
24 options: {
25 encoding: "utf8";
26 timeout: number;
27 + killSignal?: NodeJS.Signals | number;
28 detached?: true;
29 stdio?: ["ignore", "pipe", "ignore"];
30 },
@@ -302,6 +303,7 @@ export const readEnvironmentFromLoginShell: ShellEnvironmentReader = (
303 const output = execFile(shell, ["-ilc", buildEnvironmentCaptureCommand(shell, names)], {
304 encoding: "utf8",
305 timeout: 5000,
306 + killSignal: "SIGKILL",
307 detached: true,
308 stdio: ["ignore", "pipe", "ignore"],
309 });