From 6ad702600e15804059166178cf88201a629e1227 Mon Sep 17 00:00:00 2001 From: Epinephrine Date: Sun, 25 Oct 2026 14:24:58 +0900 Subject: [PATCH] fix(scripts): detect diagnostic spawn timeout via exitedDueToTimeout Bun.spawnSync returns SyncSubprocess, whose bun-types 1.4.0 declaration has no signal member; exitCode is non-nullable number. The intended check is the declared exitedDueToTimeout flag, which is also correct where POSIX signals do not exist. --- scripts/test-temp-lock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test-temp-lock.ts b/scripts/test-temp-lock.ts index 86ad30dea1e..ee83fb254b7 100644 --- a/scripts/test-temp-lock.ts +++ b/scripts/test-temp-lock.ts @@ -78,7 +78,7 @@ const defaultDiagnostic: LockedTempDiagnostic = { return { stdout: decode(result.stdout), stderr: decode(result.stderr), - timedOut: result.signal === "SIGKILL" || result.exitCode === null, + timedOut: result.exitedDueToTimeout === true, }; }, children: targetBasename => listDirectChildren(process.pid, targetBasename),