diff --git a/scripts/e2e/parallels/macos-smoke.ts b/scripts/e2e/parallels/macos-smoke.ts index cd09465d1b2..4463946a2a8 100755 --- a/scripts/e2e/parallels/macos-smoke.ts +++ b/scripts/e2e/parallels/macos-smoke.ts @@ -474,7 +474,7 @@ class MacosSmoke { this.status.freshDashboard = "pass"; await this.phase( "fresh.first-agent-turn", - Number(process.env.OPENCLAW_PARALLELS_MACOS_AGENT_TIMEOUT_S || 2100), + Number(process.env.OPENCLAW_PARALLELS_MACOS_AGENT_TIMEOUT_S || 2700), () => this.verifyTurn(), ); this.status.freshAgent = "pass"; @@ -531,7 +531,7 @@ class MacosSmoke { this.status.upgradeDashboard = "pass"; await this.phase( "upgrade.first-agent-turn", - Number(process.env.OPENCLAW_PARALLELS_MACOS_AGENT_TIMEOUT_S || 2100), + Number(process.env.OPENCLAW_PARALLELS_MACOS_AGENT_TIMEOUT_S || 2700), () => this.verifyTurn(), ); this.status.upgradeAgent = "pass"; diff --git a/scripts/e2e/parallels/provider-auth.ts b/scripts/e2e/parallels/provider-auth.ts index 999b302355e..dc907d729da 100644 --- a/scripts/e2e/parallels/provider-auth.ts +++ b/scripts/e2e/parallels/provider-auth.ts @@ -82,7 +82,7 @@ export function resolveParallelsModelTimeoutSeconds(platform?: Platform): number platform === undefined ? undefined : process.env[`OPENCLAW_PARALLELS_${platform.toUpperCase()}_MODEL_TIMEOUT_S`]; - const defaultSeconds = platform === "macos" || platform === "windows" ? 900 : 600; + const defaultSeconds = platform === "macos" || platform === "windows" ? 1800 : 900; const raw = Number( platformEnv || process.env.OPENCLAW_PARALLELS_MODEL_TIMEOUT_S || defaultSeconds, ); diff --git a/scripts/e2e/parallels/windows-smoke.ts b/scripts/e2e/parallels/windows-smoke.ts index 65acef889dd..0237b470ff7 100755 --- a/scripts/e2e/parallels/windows-smoke.ts +++ b/scripts/e2e/parallels/windows-smoke.ts @@ -398,7 +398,7 @@ class WindowsSmoke { this.status.freshGateway = "pass"; await this.phase( "fresh.first-agent-turn", - Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 2100), + Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 2700), () => this.verifyTurn(), ); this.status.freshAgent = "pass"; @@ -455,7 +455,7 @@ class WindowsSmoke { this.status.upgradeGateway = "pass"; await this.phase( "upgrade.first-agent-turn", - Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 2100), + Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 2700), () => this.verifyTurn(), ); this.status.upgradeAgent = "pass"; @@ -936,7 +936,7 @@ for ($attempt = 1; $attempt -le 2; $attempt++) { } } if (-not $agentOk) { throw 'openclaw agent finished without OK response' }`, - Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 2100) * 1000, + Number(process.env.OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 2700) * 1000, ); } diff --git a/test/scripts/parallels-smoke-model.test.ts b/test/scripts/parallels-smoke-model.test.ts index a83943cb3c8..0049dfdf745 100644 --- a/test/scripts/parallels-smoke-model.test.ts +++ b/test/scripts/parallels-smoke-model.test.ts @@ -481,7 +481,7 @@ console.log(JSON.stringify(result)); expect(script).toContain('guestPowerShellBackground(\n "agent-turn"'); expect(script).toContain("OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S"); - expect(script).toContain("OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 2100"); + expect(script).toContain("OPENCLAW_PARALLELS_WINDOWS_AGENT_TIMEOUT_S || 2700"); expect(script).toContain("windowsAgentTurnConfigPatchScript(this.auth.modelId)"); expect(script).toContain("--model"); expect(script).toContain('resolveParallelsModelTimeoutSeconds("windows")'); @@ -503,10 +503,13 @@ console.log(JSON.stringify({ })); `; expect(JSON.parse(runTsEval(source))).toEqual({ - linux: 600, - macos: 900, - windows: 900, + linux: 900, + macos: 1800, + windows: 1800, }); + expect(readFileSync(TS_PATHS.macos, "utf8")).toContain( + "OPENCLAW_PARALLELS_MACOS_AGENT_TIMEOUT_S || 2700", + ); expect(readFileSync(TS_PATHS.macos, "utf8")).toContain( '--timeout ${resolveParallelsModelTimeoutSeconds("macos")}', );