From 0ab2244ada8689ac49efa95e62c14698e8091558 Mon Sep 17 00:00:00 2001 From: asharma53 Date: Wed, 15 Apr 2026 20:06:25 -0400 Subject: [PATCH] fix(oauth): add gmail.settings.basic scope to Google OAuth defaults The Gmail settings scope is required for filter creation/deletion, label management, and other settings-level operations. Without it, the gmail_filters tool fails with 403 ACCESS_TOKEN_SCOPE_INSUFFICIENT. Existing tokens will be flagged by the credential health service's scope drift detection, prompting users to re-authenticate. Co-Authored-By: Claude Opus 4.6 (1M context) --- assistant/src/oauth/seed-providers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/assistant/src/oauth/seed-providers.ts b/assistant/src/oauth/seed-providers.ts index 12a40b53d19..70717438c22 100644 --- a/assistant/src/oauth/seed-providers.ts +++ b/assistant/src/oauth/seed-providers.ts @@ -86,6 +86,7 @@ export const PROVIDER_SEED_DATA: Record< "https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.send", + "https://www.googleapis.com/auth/gmail.settings.basic", "https://www.googleapis.com/auth/calendar.readonly", "https://www.googleapis.com/auth/calendar.events", "https://www.googleapis.com/auth/userinfo.email",