Skip to content

Commit 01a8a73

Browse files
committed
fix: restore --exclude-labels SPAM,TRASH,DRAFT,SENT in Gmail watcher (fixes #56635)
The --exclude-labels flag was present in 2026.2.24 but was accidentally dropped in 2026.3.24. Without it, sent mail and draft saves trigger webhook notifications, causing the agent to process the user's own outbound email.
1 parent e61ffa6 commit 01a8a73

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/hooks/gmail.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ export function buildGogWatchServeArgs(cfg: GmailHookRuntimeConfig): string[] {
241241
"--hook-token",
242242
cfg.hookToken,
243243
];
244+
args.push("--exclude-labels", "SPAM,TRASH,DRAFT,SENT");
244245
if (cfg.includeBody) {
245246
args.push("--include-body");
246247
}

0 commit comments

Comments
 (0)