From 04a994a746205915183034a0c182faa676dccf03 Mon Sep 17 00:00:00 2001 From: Garrett Delfosse Date: Thu, 20 Mar 2025 09:35:45 -0400 Subject: [PATCH] fix: disable autostart on ssh command Previously we used the `coder vscodessh` command for the proxy command in the ssh config, which does not have the autostart-on-connect capabilities. This restores the previous behavior. --- src/remote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote.ts b/src/remote.ts index 54bb64be..5efab0fb 100644 --- a/src/remote.ts +++ b/src/remote.ts @@ -627,7 +627,7 @@ export class Remote { const proxyCommand = featureSet.wildcardSSH ? `${escape(binaryPath)}${headerArg} --global-config ${escape( path.dirname(this.storage.getSessionTokenPath(label)), - )} ssh --stdio --usage-app=vscode --network-info-dir ${escape(this.storage.getNetworkInfoPath())}${await this.formatLogArg(logDir)} --ssh-host-prefix ${hostPrefix} %h` + )} ssh --stdio --usage-app=vscode --disable-autostart --network-info-dir ${escape(this.storage.getNetworkInfoPath())}${await this.formatLogArg(logDir)} --ssh-host-prefix ${hostPrefix} %h` : `${escape(binaryPath)}${headerArg} vscodessh --network-info-dir ${escape( this.storage.getNetworkInfoPath(), )}${await this.formatLogArg(logDir)} --session-token-file ${escape(this.storage.getSessionTokenPath(label))} --url-file ${escape(