From 79369d5396355ed1e119a008e89089f28295f3de Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Mon, 13 Jul 2026 19:08:46 -0700 Subject: [PATCH] Fail loudly on chmod errors in remote CLI launcher install (#8648) Silently swallowing chmod failures let installs proceed with a non-executable launcher, surfacing as a confusing runtime error later instead of a clear install-time failure. --- src/main/ssh/ssh-remote-cli-launcher.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/ssh/ssh-remote-cli-launcher.ts b/src/main/ssh/ssh-remote-cli-launcher.ts index 871cc6076..a246ce9c9 100644 --- a/src/main/ssh/ssh-remote-cli-launcher.ts +++ b/src/main/ssh/ssh-remote-cli-launcher.ts @@ -232,6 +232,7 @@ export function createRemoteCliInstallPlan(env: RemoteCliInstallEnv): RemoteCliI ].join('\n') } ], - postWriteCommands: [`chmod +x ${quoteSh(launcherPath)} 2>/dev/null; true`] + // Surface chmod failures: a non-executable launcher must fail install loudly, not silently. + postWriteCommands: [`chmod +x ${quoteSh(launcherPath)}`] } }