Skip to content

The agent that grows with you

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

hermes-seaeye[bot]731e99d15d93
diff --git a/apps/desktop/src/app/chat/sidebar/connection-switcher.tsx b/apps/desktop/src/app/chat/sidebar/connection-switcher.tsx
index 695310f66ef..a0ff8b47ed5 100644
--- a/apps/desktop/src/app/chat/sidebar/connection-switcher.tsx
+++ b/apps/desktop/src/app/chat/sidebar/connection-switcher.tsx
@@ -25,12 +25,7 @@ import {
import { triggerHaptic } from '@/lib/haptics'
import { Loader2 } from '@/lib/icons'
import { cn } from '@/lib/utils'
-import {
- $activeConnectionId,
- $connectionsRegistry,
- $pendingConnectionId,
- selectConnection
-} from '@/store/connections'
+import { $activeConnectionId, $connectionsRegistry, $pendingConnectionId, selectConnection } from '@/store/connections'
import { closeFindBar } from '@/store/find-in-page'
import { notifyError } from '@/store/notifications'
diff --git a/apps/desktop/src/app/gateway/hooks/use-gateway-boot.test.tsx b/apps/desktop/src/app/gateway/hooks/use-gateway-boot.test.tsx
index f37f7cbdde3..087fa065637 100644
--- a/apps/desktop/src/app/gateway/hooks/use-gateway-boot.test.tsx
+++ b/apps/desktop/src/app/gateway/hooks/use-gateway-boot.test.tsx
@@ -379,6 +379,7 @@ it('loads and tracks saved gateways without mounting the statusbar or Settings',
const bootFetch = deferred<void>()
type Listener = Parameters<NonNullable<Window['hermesDesktop']['connections']['onChanged']>>[0]
const listeners = new Set<Listener>()
+
let registry: DesktopConnectionsRegistry = {
version: 2,
primary: primaryConn.connectionId,
@@ -388,6 +389,7 @@ it('loads and tracks saved gateways without mounting the statusbar or Settings',
{ id: coderConn.connectionId, kind: 'remote', label: 'Coder', tokenPreview: null, tokenSet: false }
]
}
+
const list = vi.fn(async () => registry)
const setLastUsed = vi.fn(async () => ({ ok: true, registry }))
diff --git a/apps/desktop/src/store/connections.ts b/apps/desktop/src/store/connections.ts
index 30fbd2ba6bc..1313754631d 100644
--- a/apps/desktop/src/store/connections.ts
+++ b/apps/desktop/src/store/connections.ts
@@ -133,6 +133,7 @@ export async function refreshConnectionsRegistry(): Promise<DesktopConnectionsRe
REGISTRY_READ_TIMEOUT_MS,
'Timed out reading the connection registry'
)
+
setConnectionsRegistry(registry)
return registry