Commit Graph

1448 Commits

Author SHA1 Message Date
Gregor Žunič e0f65ca892 v2 2025-09-15 21:11:46 -07:00
Saurav Panda 1d21e72d4a fix: suppress cloud sync URLs when BROWSER_USE_CLOUD_SYNC=false 2025-09-14 10:42:03 -07:00
naaa760 bfbe1a8e83 EventBus names now generate valid Python identifiers, preventing the AssertionError completely 2025-09-14 15:35:24 +05:30
naaa760 7173d196d2 fix: replace hyphens with underscores in EventBus name generation
Fixes random EventBus error when adding new tasks by ensuring
agent ID suffix is always a valid Python identifier.
2025-09-14 15:15:07 +05:30
Magnus Müller 2a1f820d1b Fix first-step detection in take_step by updating condition to check for step_info.step_number == 0. This change ensures that initial actions are executed correctly on the actual first step. 2025-09-08 19:12:42 -07:00
Magnus Müller 6eed723311 fix take step 2025-09-08 17:48:54 -07:00
Magnus Müller b92dd506f9 Rename to follow up request 2025-09-07 18:48:12 -07:00
Magnus Müller b074521084 Fix task update in MessageManager to correctly use new user request format 2025-09-07 18:40:46 -07:00
Magnus Müller 71c848c8ef fix followup tasks 2025-09-07 18:15:12 -07:00
Magnus Müller 1380b1e903 qwen support 2025-09-07 16:25:15 -07:00
Saurav Panda 4a41caaa9d fixed auth event creation 2025-09-06 18:22:02 -07:00
Saurav Panda ed1f0728a6 Merge branch 'main' into magnus/eng-475-sync-do-not-send-data-if-not-signed-in 2025-09-06 12:52:35 -07:00
Saurav Panda 0c62293010 fixed cli auth sync issue 2025-09-06 12:50:08 -07:00
Magnus Müller e0003acdee improve comments for pause 2025-09-06 09:35:25 -07:00
Magnus Müller 2ecd1d6284 Fix formatting in agent stopping method
- Removed unnecessary blank line in the `stop` method of the Agent class to improve code cleanliness and maintainability.
2025-09-06 09:24:51 -07:00
Magnus Müller c7313d39e7 Enhance agent stopping behavior
- Added a signal to the external pause event when the agent is stopped, allowing any waiting code to check the stopped state. This improves the responsiveness of the agent's pause functionality.
2025-09-06 09:24:18 -07:00
Magnus Müller 2039e9f791 Remove commends 2025-09-06 09:12:02 -07:00
Magnus Müller f0ef506b94 Refactor pause event handling in Agent class
- Renamed the internal pause event from `_pause_event` to `_external_pause_event` for clarity and to better reflect its purpose in managing external pause control.
- Updated all references to the renamed event to ensure consistent functionality.

This change enhances the readability and maintainability of the code related to agent pause/resume operations.
2025-09-06 09:10:27 -07:00
Magnus Müller 0e44eb1d3d Merge remote-tracking branch 'origin/HEAD' into fix/issue-1716-event-driven-pause-resume 2025-09-06 09:07:53 -07:00
Magnus Müller 00da231d97 Merge branch 'main' into main 2025-09-06 06:04:09 -07:00
Gregor Žunič 9c60a4eb4f fixed immutability of tuples 2025-09-05 17:37:47 -07:00
Gregor Žunič da03000311 Merge branch 'main' into feature/url-shortener 2025-09-05 15:55:45 -07:00
Gregor Žunič b5aebf0b03 shorten super long URLs 2025-09-05 15:42:41 -07:00
Magnus Müller 304716e30f Enhance authentication flow and user feedback in CLI
- Updated `run_auth_command` to provide detailed authentication status updates and debug information during the authentication process.
- Introduced a new `UpdateAgentSessionEvent` class to facilitate session updates.
- Enhanced `CloudSync` to allow all events during the authentication flow and to show direct links for authenticated users.
- Improved error handling and user messaging for authentication failures.
- Updated documentation to clarify cloud sync settings and authentication instructions.
2025-09-05 13:13:07 -07:00
Magnus Müller 9828d18871 Implement cloud authentication feature in CLI and sync services
- Added `run_auth_command` to handle user authentication via the CLI, allowing users to authenticate with Browser Use Cloud.
- Updated `main` function to trigger authentication when the `--auth` option is used.
- Introduced `authenticate_cloud_sync` method in `CloudSync` to facilitate authentication after task completion.
- Modified `DeviceAuthClient` to handle empty agent session IDs gracefully.
- Updated documentation to include instructions for cloud authentication setup and usage.
- Enhanced tests to verify authentication flow and event handling based on authentication status.
2025-09-05 10:00:33 -07:00
Magnus Müller 01acf052cd Remove recovery_attempted attribute from AgentState model to streamline state management. 2025-09-04 17:33:41 -07:00
Magnus Müller c54b4efab5 Spelling 2025-09-04 17:32:37 -07:00
Magnus Müller 4460a8b7cb Update failure handling logic in Agent class to account for final response after failure. Adjusted logging messages for clarity and improved failure threshold checks. 2025-09-04 17:32:15 -07:00
Magnus Müller f474e24b28 force-llm-output-after-failure 2025-09-04 17:22:32 -07:00
Magnus Müller 9c6e3371fd fix-system-prompt-for-new-interactive-elements 2025-09-04 07:55:52 -07:00
Magnus Müller 73fa1c2d10 Merge branch 'main' into dont-wait-10-seconds-if-alloweddomains-not-set 2025-09-03 13:58:18 -07:00
Magnus Müller 601cfc3e23 dont wait 10 seconds if allowed_domains not set 2025-09-03 13:54:29 -07:00
Magnus Müller 82566c3efd Delete browser_use/agent/system_prompt_sample.md 2025-09-03 11:09:01 -07:00
Magnus Müller 23b5a2b8d4 Merge branch 'main' into feature/sample_images 2025-09-03 11:06:50 -07:00
Magnus Müller 15054a75c9 Update max_actions_per_step to 4 2025-09-03 09:51:36 -07:00
Magnus Müller 570b15d26a Add LLM models module and update agent initialization for default LLM 2025-09-03 09:00:57 -07:00
zhcn 714bf9c8ad Merge branch 'main' into feature/sample_images 2025-09-03 10:54:22 +08:00
Magnus Müller 883585ad4c Remove self._log_first_step_startup() from step 2025-09-02 12:27:00 -07:00
Magnus Müller 148c83c8b7 add first step logging to take step 2025-09-02 12:13:38 -07:00
zhcn a99971f39c Merge branch 'main' into feature/sample_images 2025-09-02 18:51:03 +08:00
Magnus Müller fb6b29cd9b Merge branch 'main' into clean-up-prompt-to-reduce-confusion 2025-09-01 23:55:15 -07:00
Magnus Müller 3f9b1cb650 Include max steps back in 2025-09-01 23:54:37 -07:00
Magnus Müller 4cb585e8a0 Update prompts and adjust temperature setting
- Fixed the closing tag for the file_system section in agent prompts for proper formatting.
- Increased the temperature parameter in ChatOpenAI from 0.05 to 0.2 to allow for more varied responses.
2025-09-01 23:50:07 -07:00
zhcn 2ce7b62609 Merge branch 'main' into feature/sample_images 2025-09-02 13:21:46 +08:00
zhcn 963ec67472 Update code style 2025-09-02 13:07:43 +08:00
zhcn 0fc797b9f6 Update sample_images type 2025-09-02 13:01:41 +08:00
zhcn 69ce9995ed Update browser_use/agent/prompts.py 2025-09-02 12:49:13 +08:00
zhcn ea74a986ac Update 2025-09-02 12:39:31 +08:00
zhcn 15f0bef1b6 Update browser_use/agent/service.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-09-02 12:35:20 +08:00
zhcn f68c0865f7 Add sample_images to enable browseruse to learn how to operate a platform. 2025-09-02 12:33:04 +08:00