diff --git a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts b/apps/desktop/src/app/session/hooks/use-session-actions/index.ts index b014cd0028..25cdbe6ee0 100644 --- a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts +++ b/apps/desktop/src/app/session/hooks/use-session-actions/index.ts @@ -1352,7 +1352,7 @@ export function useSessionActions({ // draft fallback for genuinely dead ids on secondary profiles. Boolean( sessionProfile?.trim() && - normalizeProfileKey(sessionProfile) !== normalizeProfileKey($activeGatewayProfile.get()) + normalizeProfileKey(sessionProfile) !== normalizeProfileKey($activeGatewayProfile.get()) ) }) diff --git a/apps/desktop/src/store/gateway-connection-lifecycle.test.ts b/apps/desktop/src/store/gateway-connection-lifecycle.test.ts index 53872b2d19..345f52216b 100644 --- a/apps/desktop/src/store/gateway-connection-lifecycle.test.ts +++ b/apps/desktop/src/store/gateway-connection-lifecycle.test.ts @@ -152,9 +152,8 @@ describe('retireLocalProfileGateways', () => { it('retires both local profile scopes without touching the same-named remote agent', async () => { const getConnection = vi.fn(async (profile: string) => descriptorFor('legacy-local', profile)) - const getConnectionFor = vi.fn( - async ({ connectionId, profile }: { connectionId: string; profile: string }) => - descriptorFor(connectionId, profile) + const getConnectionFor = vi.fn(async ({ connectionId, profile }: { connectionId: string; profile: string }) => + descriptorFor(connectionId, profile) ) installDesktop({ getConnection, getConnectionFor })