Skip to content

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

Remove commends

Magnus Müller2039e9f79184
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index a91d875fc..c9e130c73 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -617,11 +617,9 @@ class Agent(Generic[Context, AgentStructuredOutput]):
if await self.register_external_agent_status_raise_error_callback():
raise InterruptedError
- # A stop request should always interrupt execution immediately.
if self.state.stopped:
raise InterruptedError
- # Use the consolidated pause event from state as the single source of truth
if self.state.paused:
raise InterruptedError