fix: suppress heartbeat progress messages to external channels

This commit is contained in:
Re-bin
2026-02-23 12:33:29 +00:00
parent b2a1d1208e
commit ea1c4ef025

View File

@@ -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(