diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index afba8100a1..0351a5396b 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -13820,8 +13820,7 @@ ipcMain.handle('hermes:api', async (_event, request) => {
isDefaultProfile: profile => profile === 'default',
isValidProfileName: profile => PROFILE_NAME_RE.test(profile),
prepareLocal: localRequest => prepareProfileDeleteRequest(localRequest).then(() => undefined),
- teardownConnection: (connectionId, profile) =>
- teardownConnectionScopedProfileBackend(connectionId, profile)
+ teardownConnection: (connectionId, profile) => teardownConnectionScopedProfileBackend(connectionId, profile)
})
}
diff --git a/apps/desktop/electron/profile-delete-routing.test.ts b/apps/desktop/electron/profile-delete-routing.test.ts
index 236d4b3fa1..a63e864bc9 100644
--- a/apps/desktop/electron/profile-delete-routing.test.ts
+++ b/apps/desktop/electron/profile-delete-routing.test.ts
@@ -186,12 +186,7 @@ test('explicit registered local DELETE holds one gate through teardown and dispa
)
assert.equal(result, 'deleted')
- assert.deepEqual(events, [
- 'gate:worker',
- 'prepare:local:worker',
- 'dispatch:primary',
- 'release:worker'
- ])
+ assert.deepEqual(events, ['gate:worker', 'prepare:local:worker', 'dispatch:primary', 'release:worker'])
})
test('explicit registered SSH DELETE tears down its source backend before dispatch', async () => {
@@ -220,12 +215,7 @@ test('explicit registered SSH DELETE tears down its source backend before dispat
)
assert.equal(result, 'deleted')
- assert.deepEqual(events, [
- 'gate:worker',
- 'teardown:build-host:worker',
- 'dispatch:primary',
- 'release:worker'
- ])
+ assert.deepEqual(events, ['gate:worker', 'teardown:build-host:worker', 'dispatch:primary', 'release:worker'])
})
test('non-identity connection DELETE tears down the logical pool and deletes the backend target', async () => {
diff --git a/apps/desktop/src/api/profiles.ts b/apps/desktop/src/api/profiles.ts
index 514e367da5..b021639ab9 100644
--- a/apps/desktop/src/api/profiles.ts
+++ b/apps/desktop/src/api/profiles.ts
@@ -45,9 +45,7 @@ export function deleteProfile(name: string, scope?: ProfileScope): Promise<{ ok:
return hermesApi<{ ok: boolean; path: string }>({
...capabilityScoped(scope),
- ...(scope && typeof scope === 'object' && scope.connectionId?.trim() === 'local'
- ? { connectionId: 'local' }
- : {}),
+ ...(scope && typeof scope === 'object' && scope.connectionId?.trim() === 'local' ? { connectionId: 'local' } : {}),
path: `/api/profiles/${encodeURIComponent(normalized)}`,
method: 'DELETE'
})
diff --git a/apps/desktop/src/app/chat/transcript-backfill.ts b/apps/desktop/src/app/chat/transcript-backfill.ts
index 43b4135466..c7151ec59f 100644
--- a/apps/desktop/src/app/chat/transcript-backfill.ts
+++ b/apps/desktop/src/app/chat/transcript-backfill.ts
@@ -17,11 +17,7 @@
import { getOlderSessionMessages } from '@/hermes'
import { type ChatMessage, toChatMessages } from '@/lib/chat-messages'
-import {
- recordTranscriptBackfillPage,
- type TranscriptProfileScope,
- transcriptTailState
-} from '@/store/transcript-tail'
+import { recordTranscriptBackfillPage, type TranscriptProfileScope, transcriptTailState } from '@/store/transcript-tail'
/** Older rows likely exist beyond what the in-memory store holds. */
export function transcriptBackfillAvailable(
diff --git a/apps/desktop/src/app/session/hooks/use-route-resume.test.tsx b/apps/desktop/src/app/session/hooks/use-route-resume.test.tsx
index c33eeb2cbb..b7bdead6bb 100644
--- a/apps/desktop/src/app/session/hooks/use-route-resume.test.tsx
+++ b/apps/desktop/src/app/session/hooks/use-route-resume.test.tsx
@@ -378,23 +378,13 @@ describe('useRouteResume', () => {
}
const { rerender } = render(
-
+
)
expect(resumeSession).toHaveBeenCalledWith('session-1', true, ownerRoute)
resumeSession.mockClear()
- rerender(
-
- )
+ rerender()
expect(resumeSession).toHaveBeenCalledTimes(1)
expect(resumeSession).toHaveBeenCalledWith('session-2', true)
diff --git a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx
index d21790c4b0..c0b0ec6359 100644
--- a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx
+++ b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx
@@ -17,12 +17,7 @@ import {
import { createClientSessionState } from '@/lib/chat-runtime'
import { clearSessionDraft, stashSessionDraft, takeSessionDraft } from '@/store/composer'
import { requestGatewayForAgent } from '@/store/gateway'
-import {
- $activeGatewayProfile,
- $newChatProfile,
- $newChatRoute,
- ensureGatewayProfile
-} from '@/store/profile'
+import { $activeGatewayProfile, $newChatProfile, $newChatRoute, ensureGatewayProfile } from '@/store/profile'
import { $projectScope, $projectTree, ALL_PROJECTS } from '@/store/projects'
import {
$activeSessionId,
@@ -183,7 +178,9 @@ describe('connection-qualified session deletion', () => {
render(
{ actions = value }}
+ onReady={value => {
+ actions = value
+ }}
requestGateway={requestGateway}
selectedStoredSessionId="shared-session"
/>
@@ -198,12 +195,9 @@ describe('connection-qualified session deletion', () => {
connectionId: 'source-a',
profile: 'worker'
})
- expect(requestGatewayForAgent).toHaveBeenCalledWith(
- 'source-a',
- 'worker',
- 'session.close',
- { session_id: 'runtime-shared' }
- )
+ expect(requestGatewayForAgent).toHaveBeenCalledWith('source-a', 'worker', 'session.close', {
+ session_id: 'runtime-shared'
+ })
expect(requestGateway).not.toHaveBeenCalledWith('session.close', expect.anything())
})
})
@@ -713,11 +707,7 @@ function ResumeHarness({
}: {
onStateUpdate?: (sessionId: string, state: ClientSessionState) => void
onReady: (
- resume: (
- storedSessionId: string,
- replaceRoute?: boolean,
- ownerRoute?: SessionProfileRoute
- ) => Promise
+ resume: (storedSessionId: string, replaceRoute?: boolean, ownerRoute?: SessionProfileRoute) => Promise
) => void
requestGateway: (method: string, params?: Record) => Promise
runtimeIdByStoredSessionIdRef?: MutableRefObject