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
initial action
Magnus Müller7308454f27f0
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex 7d0575325..3ab83df9e 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -1818,12 +1818,20 @@ class Agent(Generic[Context, AgentStructuredOutput]):# Save initial actions to history as step 0 for rerun capability# Skip browser state capture for initial actions (usually just URL navigation)- model_output = self.AgentOutput(- evaluation_previous_goal='Starting agent with initial actions',- memory='',- next_goal='Execute initial navigation or setup actions',- action=self.initial_actions,- )+ if self.settings.flash_mode:+ model_output = self.AgentOutput(+ evaluation_previous_goal=None,+ memory='Initial navigation',+ next_goal=None,+ action=self.initial_actions,+ )+ else:+ model_output = self.AgentOutput(+ evaluation_previous_goal='Start',+ memory=None,+ next_goal='Initial navigation',+ action=self.initial_actions,+ )metadata = StepMetadata(step_number=0,