Skip to content

Commit b816c1a

Browse files
committed
fix: revert double-quoting of SSH background spawn paths
The earlier fix incorrectly passed expandTildeForSSH paths (already quoted) to buildSpawnCommand which quotes again via shellQuote, breaking redirects. Raw paths are correct - buildSpawnCommand handles quoting internally.
1 parent 2f47398 commit b816c1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node/runtime/SSHRuntime.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ export class SSHRuntime implements Runtime {
334334
const wrapperScript = wrapperParts.join(" && ");
335335

336336
// Use shared buildSpawnCommand for parity with Local
337-
// Pass expanded paths so tilde is resolved (buildSpawnCommand quotes them)
337+
// Pass raw paths - buildSpawnCommand uses shellQuote internally
338338
const spawnCommand = buildSpawnCommand({
339339
wrapperScript,
340-
stdoutPath: stdoutPathExpanded,
341-
stderrPath: stderrPathExpanded,
340+
stdoutPath,
341+
stderrPath,
342342
niceness: options.niceness,
343343
});
344344

0 commit comments

Comments
 (0)