From ea1c4ef02566a94d9d2c9593698a626365e183de Mon Sep 17 00:00:00 2001 From: Re-bin Date: Mon, 23 Feb 2026 12:33:29 +0000 Subject: [PATCH] fix: suppress heartbeat progress messages to external channels --- nanobot/cli/commands.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.py index 5edebfa..e1df6ad 100644 --- a/nanobot/cli/commands.py +++ b/nanobot/cli/commands.py @@ -363,11 +363,17 @@ def gateway( async def on_heartbeat(prompt: str) -> str: """Execute heartbeat through the agent.""" channel, chat_id = _pick_heartbeat_target() + + async def _silent(*_args, **_kwargs): + pass + return await agent.process_direct( prompt, session_key="heartbeat", channel=channel, chat_id=chat_id, + # suppress: heartbeat should not push progress to external channels + on_progress=_silent, ) heartbeat = HeartbeatService(