fix(doctor): default missing health env

This commit is contained in:
Peter Steinberger
2026-04-29 05:44:17 +01:00
parent 652f34103a
commit b3a8c7146b

View File

@@ -519,7 +519,7 @@ async function runWriteConfigHealth(ctx: DoctorHealthFlowContext): Promise<void>
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;
}