Skip to content

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

remove dead _verification_task code

Nick Sweeting3f97c7ec7bfb
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 10045a05e..90510c54f 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -790,14 +790,6 @@ class Agent(Generic[Context]):
)
signal_handler.register()
- # Wait for LLM API _validate_llm_connection() task to complete if it exists
- if hasattr(self, '_verification_task') and not self._verification_task.done():
- try:
- await self._verification_task
- except Exception:
- # Error already logged in the task
- pass
-
try:
self._log_agent_run()