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') {