mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:00:42 +00:00
fix(update): type legacy doctor handoff env
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user