Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#88671)

hermes-seaeye[bot]dc2e9dde9a6e
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index e2102225d92..25c64f9bc69 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -12596,7 +12596,6 @@ async function enumerateRegistryAgentSources(registry = readDesktopConnectionsRe
raw = { connection, profiles }
}
-
} catch (error: any) {
raw = { connection, profiles: null, error: String(error?.message || error) }
}
@@ -12606,6 +12605,7 @@ async function enumerateRegistryAgentSources(registry = readDesktopConnectionsRe
}
const remembered = rememberSshEnumeration(raw, sshRosterCache.get(connection.id), connection.kind)
+
return { connection, ...remembered }
})
)
diff --git a/apps/desktop/electron/remote-lifecycle.test.ts b/apps/desktop/electron/remote-lifecycle.test.ts
index d942ae782fd..bd1e016651c 100644
--- a/apps/desktop/electron/remote-lifecycle.test.ts
+++ b/apps/desktop/electron/remote-lifecycle.test.ts
@@ -96,10 +96,14 @@ test('listRemoteHermesProfiles inventories Mini-style profile dirs without spawn
test('listRemoteHermesProfiles rejects a hostile HERMES_HOME', async () => {
const ssh = fakeSsh([[/HERMES_HOME/, '/tmp/x; echo pwned\n']])
- await assert.rejects(() => listRemoteHermesProfiles(ssh), (err: any) => {
- assert.equal(err.kind, 'unsafe-path')
- return true
- })
+ await assert.rejects(
+ () => listRemoteHermesProfiles(ssh),
+ (err: any) => {
+ assert.equal(err.kind, 'unsafe-path')
+
+ return true
+ }
+ )
assert.equal(
ssh.calls.some(cmd => cmd.includes('ls -1')),
false
diff --git a/apps/desktop/src/sdk/index.ts b/apps/desktop/src/sdk/index.ts
index 6803bcfb2a7..31fb6e381d0 100644
--- a/apps/desktop/src/sdk/index.ts
+++ b/apps/desktop/src/sdk/index.ts
@@ -169,6 +169,7 @@ if (typeof window !== 'undefined') {
/** Live usage of the FOCUSED session, projected out of the streamed session
* state — the same readout the core statusbar's context chip paints. */
const $focusedUsage = computed($focusedSessionState, state => state?.usage ?? null)
+
const $activeConnectionId = computed($connection, connection => {
if (!connection) {
return null