From 97981b911a8327e49bd9fab85e71437e6be002d4 Mon Sep 17 00:00:00 2001 From: Xubin Ren Date: Mon, 27 Apr 2026 12:48:24 +0000 Subject: [PATCH] fix(slack): skip empty progress messages that render as blank lines --- nanobot/channels/slack.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nanobot/channels/slack.py b/nanobot/channels/slack.py index 2083f7b14..66ef6f3b6 100644 --- a/nanobot/channels/slack.py +++ b/nanobot/channels/slack.py @@ -140,7 +140,10 @@ class SlackChannel(BaseChannel): # only makes sense within the originating conversation. thread_ts_param = thread_ts if thread_ts and target_chat_id == origin_chat_id else None - if msg.content or not (msg.media or []): + is_progress = (msg.metadata or {}).get("_progress", False) + if is_progress and not msg.content: + pass # skip empty progress messages (e.g. tool-event-only updates) + elif msg.content or not (msg.media or []): mrkdwn = self._to_mrkdwn(msg.content) if msg.content else " " buttons = getattr(msg, "buttons", None) or [] chunks = split_message(mrkdwn, SLACK_MAX_MESSAGE_LEN)