fix: guard setup cancel ignore against null reads

This commit is contained in:
2026-04-03 17:43:06 -07:00
parent 57a7e5247d
commit 65ed5e4633

View File

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