




























@@ -62,7 +62,8 @@ $env:OPENCLAW_PARALLELS_AGENT_CONFIG_PATCH = @'
6262${payloadJson}
6363'@
6464$env:OPENCLAW_PARALLELS_AGENT_CONFIG_PATH = $agentTurnConfigPatchPath
65-node.exe -e @'
65+$agentTurnConfigPatchScriptPath = Join-Path ([System.IO.Path]::GetTempPath()) 'openclaw-agent-turn-config-patch.cjs'
66+@'
6667const fs = require("node:fs");
6768const path = require("node:path");
6869const configPath = process.env.OPENCLAW_PARALLELS_AGENT_CONFIG_PATH;
@@ -93,8 +94,10 @@ for (const op of payload.operations || []) {
9394}
9495fs.mkdirSync(path.dirname(configPath), { recursive: true });
9596fs.writeFileSync(configPath, JSON.stringify(cfg, null, 2) + "\\n", { mode: 0o600 });
96-'@
97+'@ | Set-Content -Path $agentTurnConfigPatchScriptPath -Encoding UTF8
98+node.exe $agentTurnConfigPatchScriptPath
9799$agentTurnConfigPatchExit = $LASTEXITCODE
100+Remove-Item $agentTurnConfigPatchScriptPath -Force -ErrorAction SilentlyContinue
98101Remove-Item Env:OPENCLAW_PARALLELS_AGENT_CONFIG_PATCH -Force -ErrorAction SilentlyContinue
99102Remove-Item Env:OPENCLAW_PARALLELS_AGENT_CONFIG_PATH -Force -ErrorAction SilentlyContinue
100103if ($agentTurnConfigPatchExit -ne 0) { throw "agent turn config patch failed" }`;
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。