fix(update): type legacy doctor handoff env

This commit is contained in:
Peter Steinberger 2026-04-29 04:36:07 +01:00
parent 5a9c0efa54
commit 9863bb964b
No known key found for this signature in database

View file

@ -25,6 +25,7 @@ export type DoctorHealthFlowContext = {
cfgForPersistence: OpenClawConfig;
sourceConfigValid: boolean;
configPath: string;
env?: NodeJS.ProcessEnv;
gatewayDetails?: ReturnType<typeof buildGatewayConnectionDetails>;
healthOk?: boolean;
gatewayMemoryProbe?: Awaited<ReturnType<typeof probeGatewayMemoryStatus>>;
@ -531,7 +532,7 @@ async function runWriteConfigHealth(ctx: DoctorHealthFlowContext): Promise<void>
});
if (
shouldSkipLegacyUpdateDoctorMetadataWrite({
env: process.env,
env: ctx.env ?? process.env,
before: ctx.cfgForPersistence,
after: ctx.cfg,
})