Skip to content

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

Remove recovery_attempted attribute from AgentState model to streamline state management.

Magnus Müller01acf052cd7b
diff --git a/browser_use/agent/views.py b/browser_use/agent/views.py
index fb85e8973..8de986114 100644
--- a/browser_use/agent/views.py
+++ b/browser_use/agent/views.py
@@ -65,7 +65,6 @@ class AgentState(BaseModel):
stopped: bool = False
session_initialized: bool = False # Track if session events have been dispatched
follow_up_task: bool = False # Track if the agent is a follow-up task
- recovery_attempted: bool = False # Track if final recovery has been attempted
message_manager_state: MessageManagerState = Field(default_factory=MessageManagerState)
file_system_state: FileSystemState | None = None