OpenManus测出死循环bug

问题链接:

https://github.com/mannaandpoem/OpenManus/issues/458

🐞 Bug 描述

当 OpenManus 在 成功查询天气并保存文件 后,它本应该终止任务,但 LLM 进入死循环,不断执行新的步骤 (Step 6+),并重复 "你可以使用这些工具" 之类的提示,导致代理无限执行。

🔍 复现步骤

运行 main.py

输入:今天广州的天气以及未来七天的天气

观察 Step 5 成功保存数据后,LLM 仍然继续运行

📌 问题描述

在 OpenManus 运行时,当查询天气并成功保存数据后(Step 5),代理 (Manus) 本应终止任务,但从 Step 6 开始,LLM 进入 死循环,不断进行无意义的 "思考",并重复 "你可以用这些工具" 之类的提示,而不执行任何新的有效操作。

🚨 关键日志分析

Step 5 (任务完成)

复制代码
INFO     | app.agent.toolcall:act:113 - 🎯 Tool 'file_saver' completed its mission! Result: Observed output of cmd `file_saver` executed:

Content successfully saved to guangzhou_weather_forecast.txt

✅ 任务完成,file_saver 成功执行,天气数据已保存。

Step 6 (开始出现异常)

复制代码
INFO     | app.agent.toolcall:think:53 - ✨ Manus's thoughts: The weather forecast for Guangzhou has been saved successfully to a file named `guangzhou_weather_forecast.txt`. If you need further assistance or have any other tasks, feel free to ask!
INFO     | app.agent.base:run:137 - Executing step 7/30

❌ 这里 Manus 应该停止任务,但它没有,而是继续执行 Step 7,等待新的指令。

Step 7-10(死循环开始)

复制代码
INFO     | app.agent.toolcall:think:53 - ✨ Manus's thoughts: It seems like you're interested in knowing how I can assist you using the various tools at my disposal. Here's a brief overview of what I can do for you:
INFO     | app.agent.base:run:137 - Executing step 8/30

❌ Manus 开始不断重复工具列表,而没有执行任何新任务。

相关推荐
Lichenpar1 天前
Springboot采用FastJson2作为MessageConverter时,配置的全局日期类型序列化转换BUG
java·开发语言·bug
Irene19912 天前
AI 找 bug 的局限性 和 Deepseek 优势明显
bug
癫狂的兔子2 天前
【bug】【Python】pandas中的DataFrame.to_excel()和ExcelWriter的区别
python·bug
癫狂的兔子3 天前
【BUG】【Python】【Spider】Compound class names are not allowed.
开发语言·python·bug
netkiller-BG7NYT3 天前
阿里云语音合成CosyVoice重大BUG被我发现了
bug
马猴烧酒.4 天前
【Mybatis出现bug】应为 <statement> 或 DELIMITER,得到 ‘id‘
java·bug·mybatis
请叫我大虾4 天前
发现一个jdk中ArrayList的小BUG
android·java·bug
离离茶4 天前
【笔记1-10】Qt bug记录:dockwidget通过raise在最前面显示,toolbar的拓展菜单失效
笔记·qt·bug
测试_AI_一辰4 天前
Agent & RAG 测试工程笔记 01:Tool Calling 跑通 + 本地 PDF 接入(智谱 GLM)
人工智能·笔记·功能测试·自动化·bug
癫狂的兔子4 天前
【BUG】【Python】清除字符串空格问题
bug