Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Remove Google search fallback from URL retrieval

Magnus Müller7f68376aeb47
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 3c7db6226..71a1f8899 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -1243,12 +1243,6 @@ class Agent(Generic[Context, AgentStructuredOutput]):
if len(found_urls) == 1:
return found_urls[0]
- # If no URL found, check if task mentions Google or search
- task_lower = task.lower()
- if 'google' in task_lower or 'search' in task_lower:
- self.logger.debug('📍 Task mentions "google" or "search", defaulting to https://google.com')
- return 'https://google.com'
-
return None
@observe(name='agent.run', metadata={'task': '{{task}}', 'debug': '{{debug}}'})