fix(testing): use UUIDs for Parallels background scripts · openclaw/openclaw@2ab883a
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -70,7 +70,7 @@ export async function runWindowsBackgroundPowerShell(
|
70 | 70 | const pollIntervalMs = Math.max(1, Math.floor(options.pollIntervalMs ?? 5_000)); |
71 | 71 | const runCommand = options.runCommand ?? run; |
72 | 72 | const safeLabel = options.label.replaceAll(/[^A-Za-z0-9_-]/g, "-"); |
73 | | -const nonce = `${safeLabel}-${Date.now()}-${Math.floor(Math.random() * 100000)}`; |
| 73 | +const nonce = `${safeLabel}-${randomUUID()}`; |
74 | 74 | const fileBase = `openclaw-parallels-${nonce}`; |
75 | 75 | const pathsScript = `$base = Join-Path $env:TEMP ${psSingleQuote(fileBase)} |
76 | 76 | $scriptPath = "$base.ps1" |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。