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
Fix line formatting in agent service for cdp_url assignment
Magnus Müllerc42aae3eaf50
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex e6c04c0be..7d586cce4 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -1117,7 +1117,9 @@ class Agent(Generic[Context, AgentStructuredOutput]):use_validation=self.settings.validate_output,version=self.version,source=self.source,- cdp_url=urlparse(self.browser_session.cdp_url).hostname if self.browser_session and self.browser_session.cdp_url else None,+ cdp_url=urlparse(self.browser_session.cdp_url).hostname+ if self.browser_session and self.browser_session.cdp_url+ else None,action_errors=self.state.history.errors(),action_history=action_history_data,urls_visited=self.state.history.urls(),