Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(google): only a blocked full re-list drops the contacts sync token

garrytan3f5c11f60392
diff --git a/src/core/google/people-calendar-sweep.ts b/src/core/google/people-calendar-sweep.ts
index 0990babad6..2317d954c7 100644
--- a/src/core/google/people-calendar-sweep.ts
+++ b/src/core/google/people-calendar-sweep.ts
@@ -138,7 +138,7 @@ export async function sweepContacts(
// A blocked re-list that reached its last page starts over at page 1 next sync, retrying the contact that failed.
if (blocked && listed) {
state.contacts_relist = null;
- state.contacts_sync_token = null;
+ if (!delta) state.contacts_sync_token = null;
}
if (blocked || !listed) return;
// Cursor and the mask it was minted under commit together, only after the