Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Update message retrieval method in BrowserUseApp to use get_messages() for improved task extraction from message history.
Magnus Müllerbe3c4526d69c
diff --git a/browser_use/cli.py b/browser_use/cli.pyindex 4faef6679..2af609260 100644--- a/browser_use/cli.py+++ b/browser_use/cli.py@@ -871,7 +871,7 @@ class BrowserUseApp(App):# Try to extract tasks by looking at message historyif hasattr(self.agent, '_message_manager') and self.agent._message_manager:- message_history = self.agent._message_manager.state.history.messages+ message_history = self.agent._message_manager.state.history.get_messages()# Extract original task(s)original_tasks = []