Skip to content

The agent that grows with you

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

hermes-seaeye[bot]bdc9a810f399
diff --git a/apps/desktop/electron/connection-registry.test.ts b/apps/desktop/electron/connection-registry.test.ts
index f32ff926b5b..a1f2bbb7a02 100644
--- a/apps/desktop/electron/connection-registry.test.ts
+++ b/apps/desktop/electron/connection-registry.test.ts
@@ -296,15 +296,12 @@ test('roster: two connections with the same install_id collapse to one row per p
])
// One row per (install, profile) — no duplicate bots for the same box.
- assert.deepEqual(
- roster.map(agent => `${agent.connectionId}/${agent.profile}`).sort(),
- ['spark/default', 'spark/research']
- )
+ assert.deepEqual(roster.map(agent => `${agent.connectionId}/${agent.profile}`).sort(), [
+ 'spark/default',
+ 'spark/research'
+ ])
// Handle disambiguation runs AFTER the collapse: no more suffixed names.
- assert.deepEqual(
- roster.map(agent => agent.handle).sort(),
- ['default', 'research']
- )
+ assert.deepEqual(roster.map(agent => agent.handle).sort(), ['default', 'research'])
})
test('roster: collapse prefers the active (primary) connection', () => {
@@ -351,6 +348,7 @@ test('roster: collapse pick order is local > ssh > remote > cloud, then registra
// Same kind → earliest-registered (enumeration order) wins.
const twin = { id: 'loop2', kind: 'remote' as const, label: 'Loopback 2', url: 'http://[::1]:8642' }
+
const sameKind = buildAgentRoster([
{ connection: remote, profiles: ['default'], installId: 'aaa' },
{ connection: twin, profiles: ['default'], installId: 'aaa' }
@@ -409,10 +407,10 @@ test('roster: collapse also folds a third same-box connection from a per-profile
{ connection: override, profiles: ['default', 'cron-bot'], installId: 'aaa' }
])
- assert.deepEqual(
- roster.map(agent => `${agent.profile}:${agent.handle}`).sort(),
- ['cron-bot:cron-bot', 'default:default']
- )
+ assert.deepEqual(roster.map(agent => `${agent.profile}:${agent.handle}`).sort(), [
+ 'cron-bot:cron-bot',
+ 'default:default'
+ ])
})
// --- updateEligibility ---
diff --git a/apps/desktop/electron/connection-registry.ts b/apps/desktop/electron/connection-registry.ts
index a8fae85b829..c9dcc09b2c8 100644
--- a/apps/desktop/electron/connection-registry.ts
+++ b/apps/desktop/electron/connection-registry.ts
@@ -351,6 +351,7 @@ export function buildAgentRoster(
string,
{ connection: RegistryConnection; installId?: string; order: number; profile: string }
>()
+
let order = 0
for (const { connection, installId, profiles } of enumerations) {
diff --git a/apps/desktop/src/app/settings/connections-registry.tsx b/apps/desktop/src/app/settings/connections-registry.tsx
index ba16990c8ee..76c7a48075b 100644
--- a/apps/desktop/src/app/settings/connections-registry.tsx
+++ b/apps/desktop/src/app/settings/connections-registry.tsx
@@ -466,6 +466,7 @@ export function ConnectionsRegistrySection() {
// Display-only: this connection is a second address for a backend
// already registered under another entry (same install_id).
const sameBackendPeer = sameBackendPeerLabel(conn, registry.connections)
+
const baseDescription =
conn.kind === 'ssh'
? `${kindMeta[conn.kind].label} · ${conn.user ? `${conn.user}@` : ''}${conn.host}${conn.port ? `:${conn.port}` : ''}`
@@ -516,7 +517,9 @@ export function ConnectionsRegistrySection() {
)}
</div>
}
- description={sameBackendPeer ? `${baseDescription} · ${s.sameBackendHint(sameBackendPeer)}` : baseDescription}
+ description={
+ sameBackendPeer ? `${baseDescription} · ${s.sameBackendHint(sameBackendPeer)}` : baseDescription
+ }
key={conn.id}
title={
<span className="flex items-center gap-2">
diff --git a/apps/desktop/src/components/pane-shell/tree/dock-enforce.test.ts b/apps/desktop/src/components/pane-shell/tree/dock-enforce.test.ts
index df6b5116e0d..12280b799fb 100644
--- a/apps/desktop/src/components/pane-shell/tree/dock-enforce.test.ts
+++ b/apps/desktop/src/components/pane-shell/tree/dock-enforce.test.ts
@@ -194,8 +194,20 @@ describe('enforced dock (stacked Bots pane → sessions-zone tab, every boot)',
const model = await import('@/components/pane-shell/tree/model')
const { registry } = await import('@/contrib/registry')
- registry.register({ id: 'workspace', area: 'panes', title: 'chat', data: { placement: 'main' }, render: () => null })
- registry.register({ id: 'sessions', area: 'panes', title: 'sessions', data: { placement: 'left' }, render: () => null })
+ registry.register({
+ id: 'workspace',
+ area: 'panes',
+ title: 'chat',
+ data: { placement: 'main' },
+ render: () => null
+ })
+ registry.register({
+ id: 'sessions',
+ area: 'panes',
+ title: 'sessions',
+ data: { placement: 'left' },
+ render: () => null
+ })
registry.register({
id: 'hermes-bots:pane',
area: 'panes',
diff --git a/apps/desktop/src/components/pane-shell/tree/store.ts b/apps/desktop/src/components/pane-shell/tree/store.ts
index d91242a65d9..6937a92b5c5 100644
--- a/apps/desktop/src/components/pane-shell/tree/store.ts
+++ b/apps/desktop/src/components/pane-shell/tree/store.ts
@@ -1174,6 +1174,7 @@ function enforceDockedPanes(
if (anchor.headerHidden === true) {
next = setGroupHeaderHiddenOp(next, anchor.id, false) ?? next
}
+
continue
}