From f09a9e87ec2b070a29fad277b9be3d4ef5417a5b Mon Sep 17 00:00:00 2001 From: Dhruv Saxena Date: Sun, 10 May 2026 11:11:43 +0530 Subject: [PATCH] fix(cron): include whatsapp in _HOME_TARGET_ENV_VARS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cron jobs using `deliver: whatsapp` were silently dropped because the resolver's home-channel env var dict in cron/scheduler.py listed every messaging platform except whatsapp. _resolve_delivery_targets() returned [] and no message was sent — but jobs.json marked the run successful and no log line surfaced the failure. The gateway adapter and the send_message tool path both honored WHATSAPP_HOME_CHANNEL correctly; only the cron path missed. Adds 'whatsapp' -> 'WHATSAPP_HOME_CHANNEL' to _HOME_TARGET_ENV_VARS. Verified end-to-end with multiple cron pings landing in WhatsApp self-chat after the fix. Fixes #22997 --- cron/scheduler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cron/scheduler.py b/cron/scheduler.py index b8ea95692cde3..8b4e31f321a7c 100644 --- a/cron/scheduler.py +++ b/cron/scheduler.py @@ -111,6 +111,7 @@ def _resolve_cron_enabled_toolsets(job: dict, cfg: dict) -> list[str] | None: "weixin": "WEIXIN_HOME_CHANNEL", "bluebubbles": "BLUEBUBBLES_HOME_CHANNEL", "qqbot": "QQBOT_HOME_CHANNEL", + "whatsapp": "WHATSAPP_HOME_CHANNEL", } # Legacy env var names kept for back-compat. Each entry is the current