From 65ed5e4633f703d8d9c8d0b27b52dc9c45c3502d Mon Sep 17 00:00:00 2001 From: sudacode Date: Fri, 3 Apr 2026 17:43:06 -0700 Subject: [PATCH] fix: guard setup cancel ignore against null reads --- launcher/setup-gate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/setup-gate.ts b/launcher/setup-gate.ts index 2026018e..0950047c 100644 --- a/launcher/setup-gate.ts +++ b/launcher/setup-gate.ts @@ -16,7 +16,7 @@ export async function waitForSetupCompletion(deps: { if (isSetupCompleted(state)) { return 'completed'; } - if (ignoringCancelled && state?.status !== 'cancelled') { + if (ignoringCancelled && state != null && state.status !== 'cancelled') { ignoringCancelled = false; } if (state?.status === 'cancelled') {