Commit Graph

1537 Commits

Author SHA1 Message Date
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
Magnus Müller cd0248f046 Update logging messages in Agent class and enhance quickstart documentation for clarity 2025-09-01 10:44:51 -07:00
Magnus Müller ba148ebb86 Update action messages for clarity in agent and dropdown tool
- Refined log message in the agent service to improve clarity regarding unexecuted actions.
- Enhanced description for dropdown options action to specify usage limitations more clearly.
2025-08-31 19:51:04 -07:00
Magnus Müller c3d0c800a2 Refactor agent prompts for clarity and consistency
- Updated page info text format to enhance readability and structure.
- Changed date format in agent state description to display only the current date.
- Simplified action results formatting in message manager for better clarity.
- Adjusted history item string representation to streamline output and remove unnecessary prefixes.
2025-08-31 19:20:45 -07:00
Magnus Müller 85426d7a79 clean-up-prompt-to-reduce-confusion 2025-08-31 19:04:56 -07:00
Magnus Müller 37c177e840 reduce frequency_penalty 2025-08-31 14:19:39 -07:00
Magnus Müller af9ab97f4a Update browser_use/agent/system_prompt_no_thinking.md
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-31 14:04:49 -07:00
Magnus Müller 32e02000e9 concise next goal 2025-08-31 13:52:34 -07:00
Magnus Müller 21b1295793 Revert "Rename extract_structured_data to get_markdown"
This reverts commit 3b46999b95.
2025-08-31 13:33:53 -07:00
Magnus Müller 3b46999b95 Rename extract_structured_data to get_markdown 2025-08-31 12:59:02 -07:00
Magnus Müller 33f69b1525 less-timeouts 2025-08-31 11:18:47 -07:00
Magnus Müller 0caa3546c3 Merge branch 'smaller-highlights' of https://github.com/browser-use/browser-use into smaller-highlights 2025-08-31 08:14:35 -07:00