Skip to content

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

Merge branch 'main' into mert/cloudrunner

Mert Unsale8b0755aff72
diff --cc browser_use/agent/message_manager/service.py
index 9f00a45c1,baf0931a4..4e433411e
--- a/browser_use/agent/message_manager/service.py
+++ b/browser_use/agent/message_manager/service.py
@@@ -114,12 -123,8 +114,11 @@@ class MessageManager
self.sensitive_data_description = ''
self.available_file_paths = available_file_paths
self.use_thinking = use_thinking
+
+ # Store settings as direct attributes instead of in a settings object
+ self.include_attributes = include_attributes or []
+ self.message_context = message_context
+ self.sensitive_data = sensitive_data
-
self.last_input_messages = []
# Only initialize messages if state is empty
if len(self.state.history.messages) == 0: