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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user