fix(bridge): keep account recovery non-interactive

Keep background account discovery passive and distinguish an identified account from a ready session.

Update the process dialog and regression coverage so recovery waits for authoritative readiness before exposing the account as online.
This commit is contained in:
DrSmoothl committed 2026-08-03 12:54:48 +08:00
1 parent dae486a0ad
commit 4a0d14ce56
6 files changed
+58 -130

No files matched your search

+1 -1
View File
@@ -685,7 +685,7 @@ export class HookSession extends EventEmitter {
}
// The await yielded — re-check we still want this before mutating state.
if (this.disposed || !this.connected || this.loggedIn) { this.stopLoginReconcile(); return; }
if (info?.loggedIn && isRealUin(info.uin)) {
if (info?.identityKnown && isRealUin(info.uin)) {
const client = this.client;
if (!client) return;
if (this.acceptedLoginHintUin === info.uin) {