From 9863bb964b95cea6fdfebcd1ee5c328ea41bce04 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 29 Apr 2026 04:36:07 +0100 Subject: [PATCH] fix(update): type legacy doctor handoff env --- src/flows/doctor-health-contributions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flows/doctor-health-contributions.ts b/src/flows/doctor-health-contributions.ts index 052a05ed22a..12c61a14f87 100644 --- a/src/flows/doctor-health-contributions.ts +++ b/src/flows/doctor-health-contributions.ts @@ -25,6 +25,7 @@ export type DoctorHealthFlowContext = { cfgForPersistence: OpenClawConfig; sourceConfigValid: boolean; configPath: string; + env?: NodeJS.ProcessEnv; gatewayDetails?: ReturnType; healthOk?: boolean; gatewayMemoryProbe?: Awaited>; @@ -531,7 +532,7 @@ async function runWriteConfigHealth(ctx: DoctorHealthFlowContext): Promise }); if ( shouldSkipLegacyUpdateDoctorMetadataWrite({ - env: process.env, + env: ctx.env ?? process.env, before: ctx.cfgForPersistence, after: ctx.cfg, })