From b3a8c7146b8f1b188c1e45ea809d79e75907129b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 29 Apr 2026 05:44:17 +0100 Subject: [PATCH] fix(doctor): default missing health env --- src/flows/doctor-health-contributions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }