From 8f6ecd5c64d486bbf8147f14e34bb78ffb1062fe Mon Sep 17 00:00:00 2001 From: Test Date: Fri, 20 Mar 2026 08:52:21 -0700 Subject: [PATCH] fix: add missing platforms to cron/send_message delivery maps and tool schema Matrix, Mattermost, Home Assistant, and DingTalk were missing from the platform_map in both cron/scheduler.py and tools/send_message_tool.py, causing delivery to those platforms to silently fail. Also updates the cronjob tool schema description to list all available delivery targets so the model knows its options. --- cron/scheduler.py | 3 +++ tools/cronjob_tools.py | 2 +- tools/send_message_tool.py | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cron/scheduler.py b/cron/scheduler.py index a7c9c6ed1..15cfb61bf 100644 --- a/cron/scheduler.py +++ b/cron/scheduler.py @@ -137,6 +137,9 @@ def _deliver_result(job: dict, content: str) -> None: "whatsapp": Platform.WHATSAPP, "signal": Platform.SIGNAL, "matrix": Platform.MATRIX, + "mattermost": Platform.MATTERMOST, + "homeassistant": Platform.HOMEASSISTANT, + "dingtalk": Platform.DINGTALK, "email": Platform.EMAIL, "sms": Platform.SMS, } diff --git a/tools/cronjob_tools.py b/tools/cronjob_tools.py index 0cb1dc19d..fccc25a90 100644 --- a/tools/cronjob_tools.py +++ b/tools/cronjob_tools.py @@ -370,7 +370,7 @@ Important safety rule: cron-run sessions should not recursively schedule more cr }, "deliver": { "type": "string", - "description": "Delivery target: origin, local, telegram, discord, signal, sms, or platform:chat_id" + "description": "Delivery target: origin, local, telegram, discord, slack, whatsapp, signal, matrix, mattermost, homeassistant, dingtalk, email, sms, or platform:chat_id" }, "model": { "type": "string", diff --git a/tools/send_message_tool.py b/tools/send_message_tool.py index 3ebd6c5b7..ed0a5cb60 100644 --- a/tools/send_message_tool.py +++ b/tools/send_message_tool.py @@ -124,6 +124,10 @@ def _handle_send(args): "slack": Platform.SLACK, "whatsapp": Platform.WHATSAPP, "signal": Platform.SIGNAL, + "matrix": Platform.MATRIX, + "mattermost": Platform.MATTERMOST, + "homeassistant": Platform.HOMEASSISTANT, + "dingtalk": Platform.DINGTALK, "email": Platform.EMAIL, "sms": Platform.SMS, }