Merge pull request #963 from Jeffrey95/fix/manus-inf-loop

fix: infinite loop in simple question until max_step is reached
This commit is contained in:
mannaandpoem
2025-03-29 16:03:33 +08:00
committed by GitHub
+8 -8
View File
@@ -111,14 +111,14 @@ class BrowserAgent(ToolCallAgent):
)
self.memory.add_message(image_message)
# Replace placeholders with actual browser state info
self.next_step_prompt = NEXT_STEP_PROMPT.format(
url_placeholder=url_info,
tabs_placeholder=tabs_info,
content_above_placeholder=content_above_info,
content_below_placeholder=content_below_info,
results_placeholder=results_info,
)
# Replace placeholders with actual browser state info
self.next_step_prompt = NEXT_STEP_PROMPT.format(
url_placeholder=url_info,
tabs_placeholder=tabs_info,
content_above_placeholder=content_above_info,
content_below_placeholder=content_below_info,
results_placeholder=results_info,
)
# Call parent implementation
result = await super().think()