From fbfbe45fc6efa668f308efc3907d7902b6a00f38 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 31 May 2026 17:12:09 +0100 Subject: [PATCH] fix(agents): use static shell snapshot temp prefix --- src/agents/shell-snapshot.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/agents/shell-snapshot.ts b/src/agents/shell-snapshot.ts index 874f559a4a3..c47ea101a5a 100644 --- a/src/agents/shell-snapshot.ts +++ b/src/agents/shell-snapshot.ts @@ -249,9 +249,7 @@ async function validateSnapshot( async function captureShellSnapshot(opts: ShellSnapshotWrapOptions): Promise { const shellName = path.basename(opts.shell); - const captureOutputDir = await fs.mkdtemp( - path.join(os.tmpdir(), `openclaw-shell-snapshot-${process.pid}-`), - ); + const captureOutputDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-shell-snapshot-")); await fs.chmod(captureOutputDir, 0o700); const captureOutputPath = path.join(captureOutputDir, "snapshot.out"); const captureOutputFile = await fs.open(captureOutputPath, "wx", 0o600);