Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
suppress unnecessary heartbeat notifications
SJK-pye6c1f520ac72
diff --git a/nanobot/heartbeat/service.py b/nanobot/heartbeat/service.pyindex 831ae85fc..916c813e2 100644--- a/nanobot/heartbeat/service.py+++ b/nanobot/heartbeat/service.py@@ -153,9 +153,15 @@ class HeartbeatService:logger.info("Heartbeat: OK (nothing to report)")return+ taskmessage = tasks + "\n\n**IMPORTANT NOTICE:** If there is nothing material to report, reply only with <SILENT_OK>."+logger.info("Heartbeat: tasks found, executing...")if self.on_execute:- response = await self.on_execute(tasks)+ response = await self.on_execute(taskmessage)++ if response and "<SILENT_OK>" in response:+ logger.info("Heartbeat: OK (silenced by agent)")+ returnif response and self.on_notify:logger.info("Heartbeat: completed, delivering response")await self.on_notify(response)