Skip to content

Commit e33aa8c

Browse files
authored
fix: use background ssh channel for link handler
After some investigation into the interaction with the Jetbrains plugin and coder/coder I found a bug where 2 ssh sessions labeled with `jetbrains` for the usage app were being open. We only want to use the main hostname when we want to track user activity, so for any background processes we should be using the background hostname.
1 parent 652fc04 commit e33aa8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/coder/gateway/util/LinkHandler.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ open class LinkHandler(
127127
verifyDownloadLink(parameters)
128128
WorkspaceProjectIDE.fromInputs(
129129
name = CoderCLIManager.getWorkspaceParts(workspace, agent),
130-
hostname = CoderCLIManager.getHostName(deploymentURL.toURL(), workspace, client.me, agent),
130+
hostname = CoderCLIManager.getBackgroundHostName(deploymentURL.toURL(), workspace, client.me, agent),
131131
projectPath = parameters.folder(),
132132
ideProductCode = parameters.ideProductCode(),
133133
ideBuildNumber = parameters.ideBuildNumber(),

0 commit comments

Comments
 (0)