git.lucas.co / cce-system-interface
system settings
git clone https://git.lucas.co/cce-system-interface.git

commit018cec10ee4c3bca1cfaa639548100df80cfb576
parentb827db8c1d
authorLucas Galante <lsgalante12@gmail.com>
date2026-10-01 20:06
accounts: stop asking Google for the tasks scope

cce-list's Google Tasks sync is gone (cce-list@3aece65: its lists are
vault notes now), so nothing uses the grant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

 src/pages/accounts.rs | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/pages/accounts.rs b/src/pages/accounts.rs
index 614a92a..ff86205 100644
--- a/src/pages/accounts.rs
+++ b/src/pages/accounts.rs
@@ -316,11 +316,12 @@ async fn google_login_flow(sender: &calloop::channel::Sender<AppAction>) {
     // Mail scopes: these accounts feed cce-mail's IMAP/SMTP (XOAUTH2 needs
     // https://mail.google.com/). The old request asked for cloud-platform/
     // cclog/aicode scopes — tokens Gmail rejects with AUTHENTICATIONFAILED.
-    // tasks, calendar.readonly and calendar.events feed cce-list-sync and
-    // cce-calendar-sync, which read the tokens this flow stores in
-    // accounts.json (events is the write half of the calendar mirror).
+    // calendar.readonly and calendar.events feed cce-calendar-sync, which
+    // reads the tokens this flow stores in accounts.json (events is the
+    // write half of the calendar mirror). No tasks scope: cce-list's lists
+    // are vault notes now, and its Google Tasks sync is gone.
     let auth_url = format!(
-        "https://accounts.google.com/o/oauth2/v2/auth?client_id={}&redirect_uri=http%3A%2F%2Flocalhost%3A36137%2Fauth%2Fcallback&response_type=code&scope=https%3A%2F%2Fmail.google.com%2F+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ftasks+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.readonly+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.events&access_type=offline&prompt=consent&code_challenge={}&code_challenge_method=S256",
+        "https://accounts.google.com/o/oauth2/v2/auth?client_id={}&redirect_uri=http%3A%2F%2Flocalhost%3A36137%2Fauth%2Fcallback&response_type=code&scope=https%3A%2F%2Fmail.google.com%2F+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.readonly+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.events&access_type=offline&prompt=consent&code_challenge={}&code_challenge_method=S256",
         client_config.client_id,
         challenge
     );