Skip to content

Commit 01df482

Browse files
fix: set usage-app to vscode on coder ssh (#442)
1 parent bbcd5fd commit 01df482

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- Remove agent singleton so that client TLS certificates are reloaded on every API request.
88
- Use Axios client to receive event stream so TLS settings are properly applied.
9+
- Set `usage-app=vscode` on `coder ssh` to fix deployment session counting.
910

1011
## [v1.4.1](https://github.com/coder/vscode-coder/releases/tag/v1.4.1) (2025-02-19)
1112

src/remote.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ export class Remote {
627627
const proxyCommand = featureSet.wildcardSSH
628628
? `${escape(binaryPath)}${headerArg} --global-config ${escape(
629629
path.dirname(this.storage.getSessionTokenPath(label)),
630-
)} ssh --stdio --network-info-dir ${escape(this.storage.getNetworkInfoPath())}${await this.formatLogArg(logDir)} --ssh-host-prefix ${hostPrefix} %h`
630+
)} ssh --stdio --usage-app=vscode --network-info-dir ${escape(this.storage.getNetworkInfoPath())}${await this.formatLogArg(logDir)} --ssh-host-prefix ${hostPrefix} %h`
631631
: `${escape(binaryPath)}${headerArg} vscodessh --network-info-dir ${escape(
632632
this.storage.getNetworkInfoPath(),
633633
)}${await this.formatLogArg(logDir)} --session-token-file ${escape(this.storage.getSessionTokenPath(label))} --url-file ${escape(

0 commit comments

Comments
 (0)