Skip to content

Commit 56c2e20

Browse files
committed
fix(auto-reply): resolve scp from path for media staging
1 parent cde99c3 commit 56c2e20

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ Docs: https://docs.openclaw.ai
163163

164164
### Fixes
165165

166+
- Auto-reply/media: resolve `scp` from `PATH` when staging sandbox media so nonstandard OpenSSH installs can copy remote attachments.
166167
- Gateway/watch: leave `OPENCLAW_TRACE_SYNC_IO` disabled by default in `pnpm gateway:watch:raw` so watch mode avoids noisy Node sync-I/O stack traces unless explicitly requested.
167168
- Codex app-server: close stdio stdin before force-killing the managed app-server, matching Codex single-client shutdown behavior and avoiding unsettled CLI exits after successful runs.
168169
- CLI/Codex: dispose registered agent harnesses during short-lived CLI shutdown so successful Codex-backed `agent --local` runs do not leave app-server child processes alive.

src/auto-reply/reply.stage-sandbox-media.scp-remote-path.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ describe("stageSandboxMedia scp remote paths", () => {
107107
workspaceDir,
108108
});
109109

110+
expect(childProcessMocks.spawn.mock.calls[0]?.[0]).toBe("scp");
110111
const remoteCacheRoot = join(CONFIG_DIR, "media", "remote-cache");
111112
const expectedSafeDir = join(remoteCacheRoot, slugifySessionKey(sessionKey));
112113
try {

src/auto-reply/reply/stage-sandbox-media.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ async function scpFile(remoteHost: string, remotePath: string, localPath: string
319319
}
320320
return new Promise((resolve, reject) => {
321321
const child = spawn(
322-
"/usr/bin/scp",
322+
"scp",
323323
[
324324
"-o",
325325
"BatchMode=yes",

0 commit comments

Comments
 (0)