Skip to content
Source
Sign inSign up
pingdotgg/t3code

test(server): the fake Claude CLI exits with its parent #14926

Mergedyordis(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/14926/headmerged by juliusmarminge View on GitHub

Showing 1 changed file with 8 additions and 1 deletion.

x
0 of 1 viewed, 1 left
8 additions and 1 deletionapps/server/src/provider/Layers/ClaudeCapabilitiesProbe.test.tsModified
View file
@@ -129,7 +129,14 @@
" });",
" }",
"});",
- "setInterval(() => {}, 1_000);",
+ "// Stay alive for follow-up control requests, but never outlive the",
+ "// parent: the probe aborts the SDK without awaiting the child, so an",
+ "// unconditional interval would strand this process until reboot.",
+ "const keepAlive = setInterval(() => {}, 1_000);",
+ 'lines.on("close", () => {',
+ " clearInterval(keepAlive);",
+ " process.exit(0);",
+ "});",
"",
].join("\n"),