Skip to content

Commit a002c41

Browse files
committed
fix(update): omit compatibility host env when package version is missing
1 parent fd790e2 commit a002c41

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/cli/update-cli/update-command.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,9 @@ async function runPackageInstallUpdate(params: {
14221422
OPENCLAW_UPDATE_IN_PROGRESS: "1",
14231423
[UPDATE_DEFER_CONFIGURED_PLUGIN_INSTALL_REPAIR_ENV]: "1",
14241424
[UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE_ENV]: "1",
1425-
OPENCLAW_COMPATIBILITY_HOST_VERSION: candidateHostVersion,
1425+
...(candidateHostVersion === null
1426+
? {}
1427+
: { OPENCLAW_COMPATIBILITY_HOST_VERSION: candidateHostVersion }),
14261428
},
14271429
timeoutMs: params.timeoutMs,
14281430
progress: params.progress,

src/infra/update-runner.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,9 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<
14871487
env: {
14881488
OPENCLAW_UPDATE_IN_PROGRESS: "1",
14891489
[UPDATE_PARENT_SUPPORTS_DOCTOR_CONFIG_WRITE_ENV]: "1",
1490-
OPENCLAW_COMPATIBILITY_HOST_VERSION: candidateHostVersion,
1490+
...(candidateHostVersion === null
1491+
? {}
1492+
: { OPENCLAW_COMPATIBILITY_HOST_VERSION: candidateHostVersion }),
14911493
},
14921494
progress,
14931495
stepIndex: 0,

0 commit comments

Comments
 (0)