From d2ea948bc0ce561d98baac19cd653a0d739394b7 Mon Sep 17 00:00:00 2001 From: HexLab98 Date: Sun, 28 Jun 2026 15:25:14 +0700 Subject: [PATCH] fix(gateway): suppress compression status noise on Discord and other chats (#39293) Extend the gateway noisy-status filter beyond Telegram so internal compression lifecycle messages stay in logs instead of spamming Discord, Slack, and other messaging channels. --- gateway/run.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gateway/run.py b/gateway/run.py index 90fe81cacfc..1cd2c9c053a 100644 --- a/gateway/run.py +++ b/gateway/run.py @@ -70,7 +70,7 @@ _ADAPTER_DISCONNECT_TIMEOUT_SECS_DEFAULT = 5.0 _TELEGRAM_COMMAND_MENTION_RE = re.compile(r"(? str: def _prepare_gateway_status_message(platform: Any, event_type: str, message: str) -> Optional[str]: - """Filter/sanitize agent status callbacks before platform delivery.""" + """Filter/sanitize agent status callbacks before platform delivery. + + Local/CLI sessions keep the raw diagnostic stream. Messaging gateway + surfaces should not receive transient auxiliary/compression chatter. + """ text = str(message or "").strip() if not text: return None