mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:50:45 +00:00
fix(update): type legacy doctor handoff env
This commit is contained in:
@@ -25,6 +25,7 @@ export type DoctorHealthFlowContext = {
|
|||||||
cfgForPersistence: OpenClawConfig;
|
cfgForPersistence: OpenClawConfig;
|
||||||
sourceConfigValid: boolean;
|
sourceConfigValid: boolean;
|
||||||
configPath: string;
|
configPath: string;
|
||||||
|
env?: NodeJS.ProcessEnv;
|
||||||
gatewayDetails?: ReturnType<typeof buildGatewayConnectionDetails>;
|
gatewayDetails?: ReturnType<typeof buildGatewayConnectionDetails>;
|
||||||
healthOk?: boolean;
|
healthOk?: boolean;
|
||||||
gatewayMemoryProbe?: Awaited<ReturnType<typeof probeGatewayMemoryStatus>>;
|
gatewayMemoryProbe?: Awaited<ReturnType<typeof probeGatewayMemoryStatus>>;
|
||||||
@@ -531,7 +532,7 @@ async function runWriteConfigHealth(ctx: DoctorHealthFlowContext): Promise<void>
|
|||||||
});
|
});
|
||||||
if (
|
if (
|
||||||
shouldSkipLegacyUpdateDoctorMetadataWrite({
|
shouldSkipLegacyUpdateDoctorMetadataWrite({
|
||||||
env: process.env,
|
env: ctx.env ?? process.env,
|
||||||
before: ctx.cfgForPersistence,
|
before: ctx.cfgForPersistence,
|
||||||
after: ctx.cfg,
|
after: ctx.cfg,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user