Skip to content

The agent that grows with you

fix(desktop): resolve inventory platform after opening SSH

Luo, Yiliang3daf382ae1ff
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index 9a804ec04d3..2020eecf938 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -14908,8 +14908,7 @@ async function probeSshProfileInventory(connection) {
)
try {
- await ssh.open()
- const platform = await detectRemotePlatform(ssh, sshConfig.remoteHermesPath || '')
+ const platform = await ssh.open().then(() => detectRemotePlatform(ssh, sshConfig.remoteHermesPath || ''))
const profiles = await remoteLifecycle.listRemoteHermesProfiles(ssh, platform)
if (profiles.length > 0) {