authorgravatar for yordis.prieto@gmail.comYordis Prieto <yordis.prieto@gmail.com> 2026-10-02 20:13:34-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-02 17:13:34-07:00
log641426885921b8d7caad1dbe35f804e6cec6a70b
tree48a6947ac2d2f95a3a3f110ad419805e5f85a7df
parent7ff2eabf56d30af15a8ac86b0eb46013a9e910ee
signature Signed by PGP key B5690EEEBB952194

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

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>

1 files changed, 8 insertions(+), 1 deletions(-)

apps/server/src/provider/Layers/ClaudeCapabilitiesProbe.test.ts+8-1
......@@ -129,7 +129,14 @@ it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => {
129129 " });",
130130 " }",
131131 "});",
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 "});",
133140 "",
134141 ].join("\n"),
135142 );