feat(account-health): allow silent refresh on scheduled probes and stop treating wangyihao token misses as auth failure
Scheduled probes and reportAccountFailure now request a silent refresh before marking an account expired, and a missing wangyihao publish token is classified as ok instead of auth_failure so the cookie-based refresh path can recover the session. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -611,7 +611,7 @@ async function runDueProbes(): Promise<void> {
|
||||
const trigger = record.suspectedExpiredAt ? "confirm" : "scheduled";
|
||||
void enqueueAccountProbe(account, {
|
||||
trigger,
|
||||
allowSilentRefresh: false,
|
||||
allowSilentRefresh: true,
|
||||
}).catch((error) => {
|
||||
console.warn("[desktop-account-health] scheduled probe failed", {
|
||||
accountId: account.id,
|
||||
@@ -946,7 +946,7 @@ export async function reportAccountFailure(
|
||||
|
||||
return await performProbeLocked(account, {
|
||||
trigger: "confirm",
|
||||
allowSilentRefresh: false,
|
||||
allowSilentRefresh: true,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user