Skip to content

Your lightweight open-source personal agent.

fix: suppress heartbeat progress messages to external channels

Re-binea1c4ef02566
diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.py
index 5edebfa61..e1df6adbc 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(