Skip to content

The agent that grows with you

fix(desktop): log when Windows remote SSH skip teardown

686f6c618085614f6a27
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index dea407b5fb5..82fc5d16903 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -9537,7 +9537,17 @@ async function teardownSshConnection(profile) {
ownershipId: state.ownershipId || sshOwnershipKey(profile)
},
{
- cleanupRemote: state.remotePlatform === 'Windows' ? async () => {} : remoteLifecycle.disconnect
+ cleanupRemote:
+ state.remotePlatform === 'Windows'
+ ? async () => {
+ // connectWindowsRemote does not share POSIX lock/kill. Stay
+ // silent on the kill path, but leave a log so quit is not a
+ // mysterious no-op on Windows remotes.
+ sshRememberLog(
+ '[ssh] skip remote serve teardown on Windows remotes; POSIX disconnect does not apply'
+ )
+ }
+ : remoteLifecycle.disconnect
}
)
}