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