diff --git a/src/flows/doctor-health-contributions.ts b/src/flows/doctor-health-contributions.ts index 6d7a8901293..a338bfbdd3f 100644 --- a/src/flows/doctor-health-contributions.ts +++ b/src/flows/doctor-health-contributions.ts @@ -519,7 +519,7 @@ async function runWriteConfigHealth(ctx: DoctorHealthFlowContext): Promise command: "doctor", mode: resolveDoctorMode(ctx.cfg), }); - if (shouldSkipLegacyUpdateDoctorConfigWrite({ env: ctx.env })) { + if (shouldSkipLegacyUpdateDoctorConfigWrite({ env: ctx.env ?? process.env })) { ctx.runtime.log("Skipping doctor config write during legacy update handoff."); return; }