From 2e8faa9994130259d317d87dca2999dc7e87712e Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Tue, 2 Dec 2025 14:39:18 +0100 Subject: [PATCH] [PM-12628] Fix cli showing locked status when using session and check (#17515) * Fix cli showing locked status when using session and check * Cleanup --- apps/cli/src/program.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/cli/src/program.ts b/apps/cli/src/program.ts index a5f12b3403..a47278db08 100644 --- a/apps/cli/src/program.ts +++ b/apps/cli/src/program.ts @@ -277,6 +277,11 @@ export class Program extends BaseProgram { }) .option("--check", "Check lock status.", async () => { await this.exitIfNotAuthed(); + const userId = (await firstValueFrom(this.serviceContainer.accountService.activeAccount$)) + ?.id; + await this.serviceContainer.userAutoUnlockKeyService.setUserKeyInMemoryIfAutoUserKeySet( + userId, + ); const authStatus = await this.serviceContainer.authService.getAuthStatus(); if (authStatus === AuthenticationStatus.Unlocked) {