From 67e0601b1acfeec3fad3ddfa226eec05179449fc Mon Sep 17 00:00:00 2001 From: pikachuren Date: Mon, 9 Nov 2026 18:14:53 +0800 Subject: [PATCH] fix(139): surface SMS verification during refresh fallback When a refresh failure triggers password login and 139 Mail asks for an SMS code, propagate Yun139SmsRequiredError instead of swallowing it and reporting only the original refresh error. The refreshed mail_cookies are still persisted first, so the next save with sms_code can continue. Tests: 139 driver 25/25, tsc clean. --- src/backend/drivers/139/util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/drivers/139/util.ts b/src/backend/drivers/139/util.ts index cb5f4466..bf3dd69a 100644 --- a/src/backend/drivers/139/util.ts +++ b/src/backend/drivers/139/util.ts @@ -501,6 +501,7 @@ export class Yun139ApiClient { mailCookies: e.mailCookies, smsCode: (this.addition.sms_code || "").trim(), }) + throw e } console.debug( "[139] re-login after refresh failure skipped:",