From 39ab11425f456e84235fe41931a29ac3c3b29238 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 11:40:26 +0100 Subject: [PATCH] test: clear Windows Parallels smoke sessions --- scripts/e2e/parallels/npm-update-scripts.ts | 2 ++ scripts/e2e/parallels/windows-smoke.ts | 2 ++ test/scripts/parallels-smoke-model.test.ts | 1 + 3 files changed, 5 insertions(+) diff --git a/scripts/e2e/parallels/npm-update-scripts.ts b/scripts/e2e/parallels/npm-update-scripts.ts index 95510c40683..1a6c769a340 100644 --- a/scripts/e2e/parallels/npm-update-scripts.ts +++ b/scripts/e2e/parallels/npm-update-scripts.ts @@ -157,6 +157,8 @@ $config.models.providers | Add-Member -Force -MemberType NoteProperty -Name open timeoutSeconds = 300 }) $config | ConvertTo-Json -Depth 100 | Set-Content -Path $configPath -Encoding utf8 +$sessionPath = Join-Path $env:USERPROFILE '.openclaw\\agents\\main\\sessions\\parallels-npm-update-windows.jsonl' +Remove-Item $sessionPath -Force -ErrorAction SilentlyContinue ${windowsAgentWorkspaceScript("Parallels npm update smoke test assistant.")} Set-Item -Path ('Env:' + ${psSingleQuote(input.auth.apiKeyEnv)}) -Value ${psSingleQuote(input.auth.apiKeyValue)} Invoke-OpenClaw agent --local --agent main --session-id parallels-npm-update-windows --message 'Reply with exact ASCII text OK only.' --thinking minimal --json`; diff --git a/scripts/e2e/parallels/windows-smoke.ts b/scripts/e2e/parallels/windows-smoke.ts index 1c09d168425..82db57d5f73 100755 --- a/scripts/e2e/parallels/windows-smoke.ts +++ b/scripts/e2e/parallels/windows-smoke.ts @@ -904,6 +904,8 @@ $config.models.providers | Add-Member -Force -MemberType NoteProperty -Name open timeoutSeconds = 300 }) $config | ConvertTo-Json -Depth 100 | Set-Content -Path $configPath -Encoding utf8 +$sessionPath = Join-Path $env:USERPROFILE '.openclaw\\agents\\main\\sessions\\parallels-windows-smoke.jsonl' +Remove-Item $sessionPath -Force -ErrorAction SilentlyContinue ${windowsAgentWorkspaceScript("Parallels Windows smoke test assistant.")} Set-Item -Path ('Env:' + ${psSingleQuote(this.auth.apiKeyEnv)}) -Value ${psSingleQuote(this.auth.apiKeyValue)} $args = ${psArray([ diff --git a/test/scripts/parallels-smoke-model.test.ts b/test/scripts/parallels-smoke-model.test.ts index f36a71f4af4..0a842abfcee 100644 --- a/test/scripts/parallels-smoke-model.test.ts +++ b/test/scripts/parallels-smoke-model.test.ts @@ -424,6 +424,7 @@ console.log(JSON.stringify(result)); expect(script).toContain("finalAssistant(Raw|Visible)Text"); expect(script).toContain("$config.models.providers"); expect(script).toContain("timeoutSeconds = 300"); + expect(script).toContain("parallels-windows-smoke.jsonl"); }); it("waits through transient Windows restoring state before VM operations", () => {