feat(desktop-client): clear auth failure on active probe and trigger probe when opening console

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-30 19:32:20 +08:00
parent 02b8cd683d
commit add918ff4c
2 changed files with 11 additions and 0 deletions
@@ -282,6 +282,7 @@ function applyActiveResult(
record.lastVerifiedAt = now;
record.lastProbeAt = now;
record.nextProbeAt = nextRegularProbeAt(now);
record.lastAuthFailureAt = null;
record.profile = result.profile ?? record.profile;
record.sessionFingerprint = result.sessionFingerprint ?? record.sessionFingerprint;
record.suspectedExpiredAt = null;
+10
View File
@@ -347,6 +347,16 @@ function registerBridgeHandlers(): void {
account: { id: string; platform: string; platformUid: string; displayName: string },
) => {
await openPublishAccountConsole(account);
void requestRuntimeAccountProbe(account.id, {
account,
force: true,
}).catch((error) => {
console.warn("[desktop-console] background account probe failed", {
accountId: account.id,
platform: account.platform,
message: error instanceof Error ? error.message : String(error),
});
});
return null;
},
);