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 browser_use/agent/message_manager/service.py
Mert Unsal97bd9fb3d212
diff --git a/browser_use/agent/message_manager/service.py b/browser_use/agent/message_manager/service.pyindex ce981b501..55e95f009 100644--- a/browser_use/agent/message_manager/service.py+++ b/browser_use/agent/message_manager/service.py@@ -385,7 +385,7 @@ My next action is to click on the iPhone link at index [4] to navigate to Apple'# Handle case where model_output is None (e.g., parsing failed)if model_output is None:- if step_number > 0:+ if isinstance(step_number, int) and step_number > 0:self.agent_history_description += f"""## Step {step_number}No model output (parsing failed){action_results}