You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(gmail): skip guard account inference without guards; cover Discovery sends
Two follow-ups from Codex review:
- The pre-Run per-account check called requireAccount even when
no_send_accounts was empty, so a plain dry-run could read the keyring
through default-account inference with no guard to evaluate. Skip
account resolution entirely unless a per-account guard exists.
- The Discovery path (gog api call gmail v1 ...messages.send/drafts.send)
ran dryRunExit before checkDiscoveryGmailNoSend, so the same dry-run
blind spot existed there. Hoist the guard above the dry-run exit with
the same skip and error-tolerance rules, and keep a post-auth
checkAccountNoSend for the resolved account, mirroring the
first-class send commands.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
## 0.34.1 - Unreleased
4
4
5
5
- MCP: add optional global and per-account capability ceilings in `config.json`, with narrow persistent write authorization, runtime-only restriction, and fail-closed selector validation. (#913) — thanks @mcaldas.
6
-
- Gmail: enforce per-account `config no-send` guards before the dry-run exit so `--dry-run` reports the block instead of `would gmail.send`, matching the `--gmail-no-send` and `gmail_no_send` layers. (#915)
6
+
- Gmail: enforce per-account `config no-send` guards before the dry-run exit so `--dry-run` reports the block instead of `would gmail.send`, matching the `--gmail-no-send` and `gmail_no_send` layers; the same pre-dry-run enforcement now covers Discovery `api call` Gmail send methods, and account resolution is skipped entirely when no per-account guards are configured. (#915)
0 commit comments