Skip to content

Commit 9d4b49d

Browse files
committed
fix: expand tilde in SSH terminate exitCodePath
1 parent 89a6f42 commit 9d4b49d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node/runtime/SSHBackgroundHandle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export class SSHBackgroundHandle implements BackgroundHandle {
6161

6262
try {
6363
// Use shared buildTerminateCommand for parity with Local
64-
const exitCodePath = `${this.outputDir}/exit_code`;
64+
// Must expand tilde - buildTerminateCommand uses shellQuote which prevents expansion
65+
const exitCodePath = expandTildeForSSH(`${this.outputDir}/exit_code`);
6566
const terminateCmd = buildTerminateCommand(this.pid, exitCodePath);
6667
await execBuffered(this.sshRuntime, terminateCmd, {
6768
cwd: "/",

0 commit comments

Comments
 (0)