The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#99862)
hermes-seaeye[bot]e22f8a7fbd70
diff --git a/apps/desktop/electron/connection-apply.test.ts b/apps/desktop/electron/connection-apply.test.tsindex 11401326610..2fe3a57ce6e 100644--- a/apps/desktop/electron/connection-apply.test.ts+++ b/apps/desktop/electron/connection-apply.test.ts@@ -94,15 +94,15 @@ describe('resolveTerminalConnection', () => {describe('sshQuitShouldBlock', () => {it('waits when connections exist and teardown has not finished', () => {- expect(- sshQuitShouldBlock({ teardownDone: false, connectionCount: 1, bootstrapPending: 0, inFlight: null })- ).toBe(true)+ expect(sshQuitShouldBlock({ teardownDone: false, connectionCount: 1, bootstrapPending: 0, inFlight: null })).toBe(+ true+ )})it('waits when bootstrap is still running', () => {- expect(- sshQuitShouldBlock({ teardownDone: false, connectionCount: 0, bootstrapPending: 1, inFlight: null })- ).toBe(true)+ expect(sshQuitShouldBlock({ teardownDone: false, connectionCount: 0, bootstrapPending: 1, inFlight: null })).toBe(+ true+ )})it('waits when the map is empty but a remote kill is already in flight', () => {@@ -128,9 +128,9 @@ describe('sshQuitShouldBlock', () => {})it('does not block quit when there is nothing to tear down', () => {- expect(- sshQuitShouldBlock({ teardownDone: false, connectionCount: 0, bootstrapPending: 0, inFlight: null })- ).toBe(false)+ expect(sshQuitShouldBlock({ teardownDone: false, connectionCount: 0, bootstrapPending: 0, inFlight: null })).toBe(+ false+ )})})diff --git a/apps/desktop/electron/connection-registry.ts b/apps/desktop/electron/connection-registry.tsindex 9d1b8d5518a..8f72948f65d 100644--- a/apps/desktop/electron/connection-registry.ts+++ b/apps/desktop/electron/connection-registry.ts@@ -1512,7 +1512,10 @@ export function reconcileRegistryDrift(const unchanged = { changed: false, registry }if (config.mode === 'ssh') {- const ssh = normalizeSshConfig({ ...(config.remote && typeof config.remote === 'object' ? config.remote : {}), mode: 'ssh' })+ const ssh = normalizeSshConfig({+ ...(config.remote && typeof config.remote === 'object' ? config.remote : {}),+ mode: 'ssh'+ })if (!ssh) {// A v1 SSH route without a usable host is not a route we can register.diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex 5b5b5747c85..64d706b5eb9 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -17556,6 +17556,7 @@ app.on('before-quit', event => {if (!sshQuitTeardownPromise) {const scopes = [...sshConnections.keys()]+const pending = Promise.allSettled([...scopes.map(scope => teardownSshConnection(scope || null)),...sshBootstrapCoordinator.promises()@@ -17565,12 +17566,11 @@ app.on('before-quit', event => {// The previous 4s race could close SSH first and leave serve --isolated// reparented to pid 1. Latch this promise BEFORE those deletes land so// a re-entrant quit still waits.- sshQuitTeardownPromise = Promise.race([- pending,- new Promise<void>(resolve => setTimeout(resolve, 6_000))- ]).then(async () => {- await sshBootstrapCoordinator.forceCleanupAll()- })+ sshQuitTeardownPromise = Promise.race([pending, new Promise<void>(resolve => setTimeout(resolve, 6_000))]).then(+ async () => {+ await sshBootstrapCoordinator.forceCleanupAll()+ }+ )}void sshQuitTeardownPromise.then(() => {diff --git a/apps/desktop/src/store/session.test.ts b/apps/desktop/src/store/session.test.tsindex 8d2d69a1f2f..18449c77dbd 100644--- a/apps/desktop/src/store/session.test.ts+++ b/apps/desktop/src/store/session.test.ts@@ -197,9 +197,11 @@ describe('session owner hints', () => {})it('pins only connection-tagged rows and leaves primary SSH rows ambient', () => {- expect(- sessionOwnerRouteFromRow(session({ connection_id: 'source-a', profile: 'worker' }))- ).toEqual({ connectionId: 'source-a', profile: 'worker', targetProfile: 'worker' })+ expect(sessionOwnerRouteFromRow(session({ connection_id: 'source-a', profile: 'worker' }))).toEqual({+ connectionId: 'source-a',+ profile: 'worker',+ targetProfile: 'worker'+ })expect(sessionOwnerRouteFromRow(session({ profile: 'default' }))).toBeUndefined()expect(sessionOwnerRouteFromRow(session({ connection_id: ' ', profile: 'default' }))).toBeUndefined()})