From e549931cf44a1c73302dc5193662171163ae99c3 Mon Sep 17 00:00:00 2001 From: IanShaw027 Date: Fri, 7 Aug 2026 16:31:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(grok):=20=E9=81=BF=E5=85=8D=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E6=97=B6=E6=97=A0=E6=95=88=E6=B8=85=E7=90=86=E9=87=8D?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E6=A0=87=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/service/token_refresh_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/service/token_refresh_service.go b/backend/internal/service/token_refresh_service.go index 35963a77e5..bbf1e8655e 100644 --- a/backend/internal/service/token_refresh_service.go +++ b/backend/internal/service/token_refresh_service.go @@ -1201,7 +1201,7 @@ func (s *TokenRefreshService) postRefreshActions(ctx context.Context, account *A // Antigravity OAuth: 刷新成功后,检查是否已设置 privacy_mode,未设置则调用 setUserSettings s.ensureAntigravityPrivacy(ctx, account) // Grok: clear soft reauth flag after a successful credential refresh. - if account != nil && account.Platform == PlatformGrok { + if account != nil && account.Platform == PlatformGrok && accountGrokNeedsReauth(account) { clearGrokNeedsReauthExtra(ctx, s.accountRepo, account.ID) } }