fix(update): type legacy doctor handoff env · openclaw/openclaw@9863bb9
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -25,6 +25,7 @@ export type DoctorHealthFlowContext = {
|
25 | 25 | cfgForPersistence: OpenClawConfig; |
26 | 26 | sourceConfigValid: boolean; |
27 | 27 | configPath: string; |
| 28 | +env?: NodeJS.ProcessEnv; |
28 | 29 | gatewayDetails?: ReturnType<typeof buildGatewayConnectionDetails>; |
29 | 30 | healthOk?: boolean; |
30 | 31 | gatewayMemoryProbe?: Awaited<ReturnType<typeof probeGatewayMemoryStatus>>; |
@@ -531,7 +532,7 @@ async function runWriteConfigHealth(ctx: DoctorHealthFlowContext): Promise<void>
|
531 | 532 | }); |
532 | 533 | if ( |
533 | 534 | shouldSkipLegacyUpdateDoctorMetadataWrite({ |
534 | | -env: process.env, |
| 535 | +env: ctx.env ?? process.env, |
535 | 536 | before: ctx.cfgForPersistence, |
536 | 537 | after: ctx.cfg, |
537 | 538 | }) |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。