The best way to control Claude Code, Codex and more from any computer or phone
test(server): the fake Claude CLI exits with its parent (#14926)
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
Yordis Prieto committed
Oct 2, 2026 at 20:13 UTC
641426885921b8d7caad1dbe35f804e6cec6a70b
1 file changed
+8
-1
apps/server/src/provider/Layers/ClaudeCapabilitiesProbe.test.ts
+8
-1
@@ -129,7 +129,14 @@ it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => {
129
" });",
130
" }",
131
"});",
132
- "setInterval(() => {}, 1_000);",
132
+ "// Stay alive for follow-up control requests, but never outlive the",
133
+ "// parent: the probe aborts the SDK without awaiting the child, so an",
134
+ "// unconditional interval would strand this process until reboot.",
135
+ "const keepAlive = setInterval(() => {}, 1_000);",
136
+ 'lines.on("close", () => {',
137
+ " clearInterval(keepAlive);",
138
+ " process.exit(0);",
139
+ "});",
140
"",
141
].join("\n"),
142
);