The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): reuse detected SSH platform
Xipongef677265d236
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex b2f47f6a0d1..442b28ce926 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -10712,6 +10712,7 @@ async function bootstrapSshConnectionInner(profile, sshConfig, reuseToken, sourcconst lifecycle = platform.os === 'Windows' ? connectWindowsRemote : remoteLifecycle.connectresult = await lifecycle({ssh,+ platform,profile: resolveRemoteSshDashboardProfile(sshConfig.remoteProfile, profile),remoteHermesPath: sshConfig.remoteHermesPath || '',ownershipId: sshOwnershipKey(profile),diff --git a/apps/desktop/electron/remote-lifecycle.test.ts b/apps/desktop/electron/remote-lifecycle.test.tsindex b75487eb39f..583f4edcab8 100644--- a/apps/desktop/electron/remote-lifecycle.test.ts+++ b/apps/desktop/electron/remote-lifecycle.test.ts@@ -999,7 +999,14 @@ test('connect() spawns fresh when there is no lockfile, adopts the served token'[/cat .*\.log/, 'HERMES_DASHBOARD_READY port=51999\n']])- const result = await connect(connectDeps(ssh, { adoptServedToken: async () => 'the-served-token' }))+ const result = await connect(+ connectDeps(ssh, {+ adoptServedToken: async () => 'the-served-token',+ platform: { os: 'Linux', arch: 'x86_64' }+ })+ )++ assert.equal(ssh.calls.filter(command => command === 'uname -s; uname -m').length, 0)assert.equal(result.reused, false)assert.equal(result.remotePort, 51999)assert.equal(result.localPort, 50001)diff --git a/apps/desktop/electron/remote-lifecycle.ts b/apps/desktop/electron/remote-lifecycle.tsindex 112fdddda3b..a9b2d9b4fd1 100644--- a/apps/desktop/electron/remote-lifecycle.ts+++ b/apps/desktop/electron/remote-lifecycle.ts@@ -1396,7 +1396,7 @@ async function connect(deps) {const log = msg => rememberLog(`[ssh-lifecycle] ${msg}`)assertBootstrapNotSuperseded(signal)- const platform = await probeRemotePlatform(ssh)+ const platform = deps.platform ?? (await probeRemotePlatform(ssh))log(`remote platform ${platform.os}/${platform.arch}`)const hermesHome = await probeRemoteHermesHome(ssh)await assertRemoteInstallUpdateClear(ssh, hermesHome)