[Bug]群晖docker对接微信个人版,提醒任务会触发无限循环提醒
What happened / 发生了什么
提醒任务会触发无限循环,关都关不掉,只能重启,顺便提一下,微信语音有报错日志,但可以正常使用
Reproduce / 如何复现?
这个不清楚
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
4.23.2,群晖docker对接微信个人版
OS
Other
Logs / 报错日志
[2026-04-19 21:00:37.626] [Core] [ERRO] [v4.23.2] [weixin_oc.weixin_oc_adapter:1705]: weixin_oc(weixin_personal): poll inbound updates failed, will retry after 5 seconds: Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
[2026-04-19 21:00:47.630] [Core] [ERRO] [v4.23.2] [weixin_oc.weixin_oc_adapter:1705]: weixin_oc(weixin_personal): poll inbound updates failed, will retry after 5 seconds: Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
[2026-04-19 21:01:02.649] [Core] [ERRO] [v4.23.2] [weixin_oc.weixin_oc_adapter:1705]: weixin_oc(weixin_personal): poll inbound updates failed, will retry after 5 seconds: Cannot connect to host ilinkai.weixin.qq.com:443 ssl:default [Temporary failure in name resolution]
[2026-04-20 02:00:17.907] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user', 'future_task', 'future_task']
[2026-04-20 02:00:17.908] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '记得登记!', 'type': 'plain'}]}
[2026-04-20 02:00:19.104] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:future_task,参数:{'name': '登记提醒(链式)', 'note': "1. 提醒用户:'记得登记'。 2. 提醒完成后,请立即为用户创建两个新任务:\n a. 一个设定在次日(北京时间)早上 10:00,内容为'记得登记',以维持链式提醒。\n b. 一个设定在今天(北京时间)早上 10:05,内容为'【补救提醒】记得登记'。\n以此类推,确保每天都有两次提醒。", 'run_once': True, 'run_at': '2026-04-21T10:00:00+08:00', 'action': 'create'}
[2026-04-20 02:00:19.186] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:future_task,参数:{'name': '登记补救提醒', 'note': "提醒用户:'【补救提醒】记得登记'", 'run_once': True, 'run_at': '2026-04-20T10:05:00+08:00', 'action': 'create'}
[2026-04-20 02:00:19.225] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool future_task Result: Scheduled future task 67708655-9a66-42f7-ab1a-c393fb9aab74 (登记补救提醒) one-time at 2026-04-20 10:05:00+08:00.
[2026-04-20 02:05:08.844] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:05:08.845] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:05:09.800] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[2026-04-20 02:05:17.672] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:05:17.672] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:05:18.503] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[2026-04-20 02:05:36.122] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:05:36.123] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'session': 'weixin_personal_FriendMessage_o9cq805ZvlGR-TqytNlEOOiyjG_c_im.wechat', 'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记!'}]}
[2026-04-20 02:05:36.126] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: error: invalid session: not enough values to unpack (expected 3, got 1)
[2026-04-20 02:05:39.825] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:05:39.825] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:05:41.367] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[2026-04-20 02:05:50.090] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:05:50.091] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:05:50.785] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] By the way, you have executed the same tool send_message_to_user 3 times consecutively. Double-check whether another tool, different arguments, or a summary would move the task forward better.
[2026-04-20 02:05:55.728] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:05:55.729] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:05:56.320] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] By the way, you have executed the same tool send_message_to_user 3 times consecutively. Double-check whether another tool, different arguments, or a summary would move the task forward better.
[2026-04-20 02:06:05.717] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:06:05.718] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记', 'type': 'plain'}]}
[2026-04-20 02:06:07.859] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 4 times consecutively. Unless this repetition is clearly necessary, stop repeating the same action and either switch tools, refine parameters, or summarize what is still missing.
[2026-04-20 02:06:28.595] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:06:28.596] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:06:29.409] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 4 times consecutively. Unless this repetition is clearly necessary, stop repeating the same action and either switch tools, refine parameters, or summarize what is still missing.
[2026-04-20 02:06:31.893] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:06:31.894] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记'}]}
[2026-04-20 02:06:32.524] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 5 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:06:43.457] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:06:43.458] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:06:43.617] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:06:44.016] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 5 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:06:50.589] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:06:50.590] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记!'}]}
[2026-04-20 02:06:50.767] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:06:51.250] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 6 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:06.150] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:06.151] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记!'}]}
[2026-04-20 02:07:06.363] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:06.732] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 6 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:10.171] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:10.172] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记!'}]}
[2026-04-20 02:07:10.313] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:10.801] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 7 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:13.401] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:13.402] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:07:13.581] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:13.996] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 7 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:17.986] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:17.987] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记', 'type': 'plain'}]}
[2026-04-20 02:07:18.161] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:18.654] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 8 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:27.888] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:27.889] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记!'}]}
[2026-04-20 02:07:28.061] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:28.470] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 8 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:33.774] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:33.775] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:07:33.948] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:34.316] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 9 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:40.530] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:40.531] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记!'}]}
[2026-04-20 02:07:40.695] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:41.177] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 10 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:43.348] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:43.349] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记'}]}
[2026-04-20 02:07:43.523] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:43.923] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 9 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:45.550] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:45.551] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:07:45.715] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:46.200] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 11 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:47.851] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:47.851] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:07:48.031] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:48.416] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 10 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:53.041] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:53.042] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记!'}]}
[2026-04-20 02:07:53.227] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:53.669] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 12 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:07:54.745] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:07:54.746] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记'}]}
[2026-04-20 02:07:54.923] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:07:55.415] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 11 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:08:02.292] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:08:02.293] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:08:02.440] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:08:02.921] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 12 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:08:06.280] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:08:06.281] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记!⏰'}]}
[2026-04-20 02:08:06.463] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:08:06.990] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 13 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:08:20.396] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:08:20.397] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'type': 'plain', 'text': '【补救提醒】记得登记!'}]}
[2026-04-20 02:08:20.596] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:08:21.071] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 13 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:08:22.043] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:08:22.044] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:08:22.234] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:08:22.729] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 14 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:08:33.349] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:08:33.350] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记', 'type': 'plain'}]}
[2026-04-20 02:08:33.503] [Core] [WARN] [v4.23.2] [weixin_oc.weixin_oc_adapter:896]: weixin_oc(weixin_personal): sendmessage failed for [email protected]: ret=-2, errcode=0, errmsg=
[2026-04-20 02:08:34.006] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 14 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:08:34.113] [Core] [INFO] [core.event_bus:61]: [default] [weixin_personal(weixin_oc)] [email protected]/[email protected]: 停了,发那么多提醒干嘛
[2026-04-20 02:08:38.113] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:08:38.114] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:08:38.827] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 15 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:08:44.376] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:08:44.377] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!', 'type': 'plain'}]}
[2026-04-20 02:08:44.676] [Core] [INFO] [respond.stage:183]: Prepare to send - [email protected]/[email protected]:
[2026-04-20 02:08:44.677] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['future_task']
[2026-04-20 02:08:44.678] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:future_task,参数:{'action': 'list'}
[2026-04-20 02:08:44.687] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool future_task Result: 67708655-9a66-42f7-ab1a-c393fb9aab74 | 登记补救提醒 | active_agent | run_once=True | enabled=True | next=2026-04-20 02:05:00
f0f935cd-6532-434f-9c46-12105ed2b4af | 登记提醒(链式) | active_agent | run_once=True | enabled=True | next=2026-04-21 02:00:00
b282b3f7-8051-4c29-86d3-bd26197b76f5 | 登记补救提醒(首日) | active_agent | run_once=True | enabled=True | next=2026-04-20 02:05:00
[2026-04-20 02:08:45.448] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 16 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
[2026-04-20 02:09:00.133] [Core] [INFO] [runners.tool_loop_agent_runner:883]: Agent 使用工具: ['send_message_to_user']
[2026-04-20 02:09:00.134] [Core] [INFO] [runners.tool_loop_agent_runner:932]: 使用工具:send_message_to_user,参数:{'messages': [{'text': '【补救提醒】记得登记!⏰', 'type': 'plain'}]}
[2026-04-20 02:09:00.904] [Core] [INFO] [runners.tool_loop_agent_runner:1130]: Tool send_message_to_user Result: Message sent to session weixin_personal:FriendMessage:[email protected]
[SYSTEM NOTICE] Important: you have executed the same tool send_message_to_user 17 times consecutively. Repetition is now very high. Continue only if each call is clearly producing new information. Otherwise, change strategy, adjust arguments, or explain the limitation to the user.
Are you willing to submit a PR? / 你愿意提交 PR 吗?
- [ ] Yes!
Code of Conduct
- [x] I have read and agree to abide by the project's Code of Conduct。
这是一个从 v4.11.2 到当前 v4.23.2 都存在的 bug,已有多个用户报告了相同的问题 [1] [2]。
根本原因:send_message_to_user 工具执行后返回了字符串结果("Message sent to session X")而不是 None。在 agent loop 中,只有返回 None 才会立即终止循环并进入 AgentState.DONE [3]。返回非 None 值会导致 loop 继续,LLM 被再次调用并重复调用同一工具,形成死循环。日志中的 SYSTEM NOTICE 警告只是对 LLM 的软性提示,并不会强制中断循环,唯一的硬性限制是 max_step(默认30步)。
定时任务场景尤其严重,因为它自动执行、无人监管,直到达到 max_step 才停止。
临时缓解方案:
- 在管理面板中将
max_agent_step降低到 3-5,大幅减少循环次数 - 切换到能正确发出 stop 信号的模型(如 DeepSeek-v3),部分模型(如 MiMo)更容易触发此问题 [2]
- 对已有的提醒任务,可以通过
future_task的action: delete删除不需要的任务避免继续触发
To reply, just mention @dosu.
Share context across your team and agents. Try Dosu.
这个一般是模型性能导致的问题。你用的是什么模型?
这个一般是模型性能导致的问题。你用的是什么模型?
gemma4
走的是openai的接口还是gemini的?