JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(heartbeat): heartbeat and cron tasks not register the cron tool
z2tng382997483ca5
diff --git a/jiuwenclaw/agentserver/deep_agent/interface_deep.py b/jiuwenclaw/agentserver/deep_agent/interface_deep.pyindex d48c59b2bc..995209c665 100644--- a/jiuwenclaw/agentserver/deep_agent/interface_deep.py+++ b/jiuwenclaw/agentserver/deep_agent/interface_deep.py@@ -1742,7 +1742,7 @@ class JiuWenClawDeepAdapter:) -> None:"""注册 cron 和 send_file 工具(与 mode 无关,每次请求刷新)。"""# 定时工具:按当前 session 的 channel 注册(contextvar 已由 _bind_runtime_cron_context 设置)- if session_id not in ("heartbeat", "cron"):+ if not (session_id.startswith("heartbeat") or session_id.startswith("cron")):try:cron_tools = self._build_cron_tools()if cron_tools: