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
reset state stopped after new task
Magnus Müller3240b13501c7
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.pyindex 57c3524c3..833236248 100644--- a/browser_use/agent/service.py+++ b/browser_use/agent/service.py@@ -626,6 +626,9 @@ class Agent(Generic[Context, AgentStructuredOutput]):self._message_manager.add_new_task(new_task)# Mark as follow-up task and recreate eventbus (gets shut down after each run)self.state.follow_up_task = True+ # Reset control flags so agent can continue+ self.state.stopped = False+ self.state.paused = Falseagent_id_suffix = str(self.id)[-4:].replace('-', '_')if agent_id_suffix and agent_id_suffix[0].isdigit():agent_id_suffix = 'a' + agent_id_suffix