fix(agents): use static shell snapshot temp prefix · openclaw/openclaw@fbfbe45
steipete
·
2026-06-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -249,9 +249,7 @@ async function validateSnapshot(
|
249 | 249 | |
250 | 250 | async function captureShellSnapshot(opts: ShellSnapshotWrapOptions): Promise<string | null> { |
251 | 251 | const shellName = path.basename(opts.shell); |
252 | | -const captureOutputDir = await fs.mkdtemp( |
253 | | -path.join(os.tmpdir(), `openclaw-shell-snapshot-${process.pid}-`), |
254 | | -); |
| 252 | +const captureOutputDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-shell-snapshot-")); |
255 | 253 | await fs.chmod(captureOutputDir, 0o700); |
256 | 254 | const captureOutputPath = path.join(captureOutputDir, "snapshot.out"); |
257 | 255 | const captureOutputFile = await fs.open(captureOutputPath, "wx", 0o600); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。