Skip to content

Commit 295c3a5

Browse files
committed
fix(parallels): preserve dev update plugin inventory
1 parent 184b54d commit 295c3a5

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎scripts/e2e/parallels/macos-smoke.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ config.update = { ...(config.update || {}), channel: "dev" };
970970
fs.mkdirSync(path.dirname(configPath), { recursive: true });
971971
fs.writeFileSync(configPath, JSON.stringify(config, null, 2) + "\\n");
972972
JS
973-
/usr/bin/env NODE_OPTIONS=--max-old-space-size=8192 OPENCLAW_ALLOW_OLDER_BINARY_DESTRUCTIVE_ACTIONS=1 OPENCLAW_DISABLE_BUNDLED_PLUGINS=1${devTargetEnv} ${guestOpenClawEntryRunner} update --channel dev --yes --json --no-restart --timeout ${this.updateDevTimeoutSeconds}
973+
/usr/bin/env NODE_OPTIONS=--max-old-space-size=8192 OPENCLAW_ALLOW_OLDER_BINARY_DESTRUCTIVE_ACTIONS=1${devTargetEnv} ${guestOpenClawEntryRunner} update --channel dev --yes --json --no-restart --timeout ${this.updateDevTimeoutSeconds}
974974
${guestOpenClawEntryRunner} --version
975975
${guestOpenClawEntryRunner} update status --json`,
976976
{},

‎scripts/e2e/parallels/windows-smoke.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ $config.update | Add-Member -Force -MemberType NoteProperty -Name channel -Value
687687
$config | ConvertTo-Json -Depth 100 | Set-Content -Path $configPath -Encoding utf8
688688
${windowsScopedEnvFunction}
689689
$script:OpenClawUpdateExit = 0
690-
Invoke-WithScopedEnv @{ OPENCLAW_ALLOW_OLDER_BINARY_DESTRUCTIVE_ACTIONS = '1'; OPENCLAW_DISABLE_BUNDLED_PLUGINS = '1'${devTargetEntry} } {
690+
Invoke-WithScopedEnv @{ OPENCLAW_ALLOW_OLDER_BINARY_DESTRUCTIVE_ACTIONS = '1'${devTargetEntry} } {
691691
Invoke-OpenClaw update --channel dev --yes --json --no-restart --timeout ${this.updateTimeoutSeconds}
692692
$script:OpenClawUpdateExit = $LASTEXITCODE
693693
}

‎test/scripts/parallels-smoke-model.test.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2153,7 +2153,15 @@ kill -TERM "$$"`,
21532153
expect(transports).toContain("launch retry");
21542154
});
21552155

2156-
it("keeps Windows update-only env flags scoped before verification", () => {
2156+
it("preserves bundled plugin inventory during dev updates", () => {
2157+
const devUpdateLines = [macos, windows].map((script) =>
2158+
script.split("\n").find((line) => line.includes("update --channel dev")),
2159+
);
2160+
2161+
expect(devUpdateLines).not.toContain(undefined);
2162+
for (const updateLine of devUpdateLines) {
2163+
expect(updateLine).not.toContain("OPENCLAW_DISABLE_BUNDLED_PLUGINS");
2164+
}
21572165
expect(powershell).toContain("windowsScopedEnvFunction");
21582166
expect(windows).toContain(
21592167
"Invoke-WithScopedEnv @{ OPENCLAW_ALLOW_OLDER_BINARY_DESTRUCTIVE_ACTIONS",

0 commit comments

Comments
 (0)