From 8c8193dce5faf71d80bf98eb52bd896ee7be8a27 Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 01:49:17 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#93429) Co-authored-by: github-actions[bot] --- apps/desktop/electron/connection-registry.test.ts | 8 ++++---- apps/desktop/electron/remote-liveness.test.ts | 15 +++++---------- apps/desktop/src/app/chat/session-tile.test.ts | 4 +++- apps/desktop/src/store/session.ts | 5 +---- 4 files changed, 13 insertions(+), 19 deletions(-) diff --git a/apps/desktop/electron/connection-registry.test.ts b/apps/desktop/electron/connection-registry.test.ts index 3ad9a9d4a4..a5d7b6206f 100644 --- a/apps/desktop/electron/connection-registry.test.ts +++ b/apps/desktop/electron/connection-registry.test.ts @@ -1297,10 +1297,10 @@ test('Apply between two remotes keeps each real registration once and activates const remotes = second.connections.filter(connection => connection.kind === 'remote') - assert.deepEqual( - remotes.map(connection => connection.url).sort(), - ['https://one.example.com', 'https://two.example.com'] - ) + assert.deepEqual(remotes.map(connection => connection.url).sort(), [ + 'https://one.example.com', + 'https://two.example.com' + ]) assert.equal(new Set(remotes.map(connection => connection.id)).size, 2) assert.equal(second.primary, remotes.find(connection => connection.url === 'https://two.example.com')?.id) assert.equal(second.lastUsed, second.primary) diff --git a/apps/desktop/electron/remote-liveness.test.ts b/apps/desktop/electron/remote-liveness.test.ts index 6614d454a7..38874bc560 100644 --- a/apps/desktop/electron/remote-liveness.test.ts +++ b/apps/desktop/electron/remote-liveness.test.ts @@ -268,17 +268,12 @@ describe('revalidatePooledRemoteBackends', () => { const harness = ( rawEntries: Array<[string, { process?: unknown; remoteBaseUrl?: null | string; authMode?: string }]> ) => { - const entries: Array<[ - string, - TestRemoteConnection & { connectionPromise: Promise } - ]> = rawEntries.map(([profile, entry]) => { - const connection = { ...entry, baseUrl: String(entry.remoteBaseUrl || '') } + const entries: Array<[string, TestRemoteConnection & { connectionPromise: Promise }]> = + rawEntries.map(([profile, entry]) => { + const connection = { ...entry, baseUrl: String(entry.remoteBaseUrl || '') } - return [ - profile, - { ...connection, connectionPromise: Promise.resolve(connection) } - ] - }) + return [profile, { ...connection, connectionPromise: Promise.resolve(connection) }] + }) const unreachable = new Set() const log = vi.fn() diff --git a/apps/desktop/src/app/chat/session-tile.test.ts b/apps/desktop/src/app/chat/session-tile.test.ts index 47cab3b3e7..3b93213855 100644 --- a/apps/desktop/src/app/chat/session-tile.test.ts +++ b/apps/desktop/src/app/chat/session-tile.test.ts @@ -4,7 +4,9 @@ import { sessionTileResumeFailure } from './session-tile' describe('sessionTileResumeFailure', () => { it('keeps a confirmed durable session retryable instead of repeating a stale 404', () => { - expect(sessionTileResumeFailure('session not found', true, true)).toBe('Session is still available — retry resuming it.') + expect(sessionTileResumeFailure('session not found', true, true)).toBe( + 'Session is still available — retry resuming it.' + ) }) it('fails safe on an inconclusive durable lookup', () => { diff --git a/apps/desktop/src/store/session.ts b/apps/desktop/src/store/session.ts index 201d46c403..6c415a2478 100644 --- a/apps/desktop/src/store/session.ts +++ b/apps/desktop/src/store/session.ts @@ -125,10 +125,7 @@ export function sessionBelongsToProfile( * (Bot Mode's canonical "Bot Chat") never appear in the row list, so the hint is * often the only sync source. */ -export function knownSessionProfile( - sessions: readonly SessionInfo[], - sessionId: null | string -): string | undefined { +export function knownSessionProfile(sessions: readonly SessionInfo[], sessionId: null | string): string | undefined { if (!sessionId) { return undefined }