From f4037f404ebfcd68207d87b93c61a6d614b20a63 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Fri, 19 Dec 2025 17:34:34 +0100 Subject: [PATCH] [PM-29419] Fix ssh account switching (#18060) * Fix ssh account switching * Npx prettier --- apps/desktop/src/autofill/services/ssh-agent.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/desktop/src/autofill/services/ssh-agent.service.ts b/apps/desktop/src/autofill/services/ssh-agent.service.ts index a61903a5c82..8339f635c1b 100644 --- a/apps/desktop/src/autofill/services/ssh-agent.service.ts +++ b/apps/desktop/src/autofill/services/ssh-agent.service.ts @@ -89,7 +89,6 @@ export class SshAgentService implements OnDestroy { filter(({ enabled }) => enabled), map(({ message }) => message), withLatestFrom(this.authService.activeAccountStatus$, this.accountService.activeAccount$), - filter(([, , account]) => account != null), // This switchMap handles unlocking the vault if it is locked: // - If the vault is locked, we will wait for it to be unlocked. // - If the vault is not unlocked within the timeout, we will abort the flow. @@ -97,7 +96,7 @@ export class SshAgentService implements OnDestroy { // switchMap is used here to prevent multiple requests from being processed at the same time, // and will cancel the previous request if a new one is received. switchMap(([message, status, account]) => { - if (status !== AuthenticationStatus.Unlocked) { + if (status !== AuthenticationStatus.Unlocked || account == null) { ipc.platform.focusWindow(); this.toastService.showToast({ variant: "info",