diff --git a/apps/desktop/electron/remote-lifecycle.test.ts b/apps/desktop/electron/remote-lifecycle.test.ts index 90c1ece8a6b12..151da86830646 100644 --- a/apps/desktop/electron/remote-lifecycle.test.ts +++ b/apps/desktop/electron/remote-lifecycle.test.ts @@ -143,10 +143,7 @@ test('locateHermes returns an explicit remoteHermesPath unchanged', async () => ]) assert.equal(await locateHermes(ssh, '~/.local/bin/hermes'), '~/.local/bin/hermes') - assert.ok( - !ssh.calls.some(cmd => cmd.includes('python3 -c')), - 'an explicit remoteHermesPath must never be rewritten' - ) + assert.ok(!ssh.calls.some(cmd => cmd.includes('python3 -c')), 'an explicit remoteHermesPath must never be rewritten') }) test('locateHermes falls back to ~/.local/bin/hermes when the login-shell probe misses', async () => { diff --git a/apps/desktop/electron/remote-lifecycle.ts b/apps/desktop/electron/remote-lifecycle.ts index b8a385c2e7e30..1dcd74e3b7e9d 100644 --- a/apps/desktop/electron/remote-lifecycle.ts +++ b/apps/desktop/electron/remote-lifecycle.ts @@ -128,16 +128,16 @@ function expandRemotePath(p) { // non-login `ssh host cmd` PATH misses user installs), then known install paths. async function locateHermes(ssh, remoteHermesPath) { const resolveLauncher = async (candidate: string) => { - // Return the candidate path directly. The hermes binary or wrapper script - // is executable and handles argument forwarding (e.g. `exec