Commit Graph

1537 Commits

Author SHA1 Message Date
mertunsall 92a1aa2412 small update to sys prompts 2025-10-03 19:21:34 +02:00
mertunsall 9e35f37b21 default to gemini-flash-latest 2025-10-03 19:02:58 +02:00
mertunsall 4709ab9afd Functionality to stop the agent externally 2025-10-03 17:32:54 +02:00
Magnus Müller 781f948bb8 change gemini 2.5 flash to gemini latest 2025-09-26 15:54:19 -07:00
Magnus Müller e496c3a93f Merge branch 'main' into speed-ups3 2025-09-22 18:24:21 -07:00
Mert Unsal 8b13bf4433 Merge branch 'main' into patch-1 2025-09-23 03:06:29 +02:00
Mert Unsal 3aa3121d61 Merge branch 'main' into fix/task-uuid 2025-09-23 03:05:08 +02:00
Mert Unsal 28d976ffb1 Merge branch 'main' into mert/improvepdf 2025-09-23 02:55:15 +02:00
mertunsall 0a924437d6 improve the pdf viewer prompt 2025-09-23 02:52:38 +02:00
Magnus Müller a5cc03d782 Add character limit enforcement for read_state_description and action_results 2025-09-22 16:10:05 -07:00
Magnus Müller 5d749793ec Refactor model timeout logic and enhance ModelProviderError initialization 2025-09-22 16:02:03 -07:00
Chris Schnabl d2d27becc1 Merge branch 'main' of https://github.com/browser-use/browser-use into remove-unused-parameter 2025-09-22 10:50:12 -07:00
Chris Schnabl 84b7eb07ee Run pre-commit hooks 2025-09-22 10:49:55 -07:00
Smaran Nama Arunkumar b3c52e8f7a Changing Pydantic limit for Amazon Bedrock ARN in model
The ARN of cross-region inference exceeds the limit of 100 characters, which is not allowing to make ChatAnthropicBedrock calls. The limit increase ensures we are able to use the inference endpoints with the ARN.
2025-09-22 15:19:53 +05:30
Chris Schnabl 03608b62a2 Remove unused paramter 2025-09-21 21:38:42 -07:00
Cursor Agent 166ea02173 Fix: Check for None in override_system_message
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-09-21 03:31:55 +00:00
Neha Prasad 67aa134c70 Merge branch 'main' into fix/task-uuid 2025-09-20 14:32:35 +05:30
Magnus Müller 32001b0f1b Remove concise comments 2025-09-20 00:03:59 -07:00
Magnus Müller 16a626c81b Refine memory output format to emphasize conciseness and token efficiency 2025-09-19 23:53:45 -07:00
Magnus Müller fb24117363 Lint 2025-09-19 23:52:38 -07:00
Magnus Müller e454309f51 Dynamic model timeout 2025-09-19 23:48:49 -07:00
Magnus Müller e8389ef26b Longer memory 2025-09-19 22:53:04 -07:00
Magnus Müller beccb530f2 Flash prompt more memory 2025-09-19 22:31:50 -07:00
Gregor Žunič 0ceee655e3 Merge branch 'main' into feature/better-custom-actions 2025-09-19 11:23:42 -07:00
Cursor Agent c4ed783a2b Refactor: Make version check async and use httpx
Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
2025-09-19 04:12:48 +00:00
Cursor Agent a64c42bb41 Add check for latest browser-use version
Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
2025-09-19 01:57:51 +00:00
Magnus Müller ec8f901337 log-js-result 2025-09-17 13:24:42 -07:00
Magnus Müller 75005acd5d Merge branch 'main' into improve-prompt-dom-meta-data 2025-09-17 11:33:32 -07:00
Magnus Müller 6244c97876 Include information about dom metadata in prompt 2025-09-17 11:32:11 -07:00
Magnus Müller 8c1207a614 fix-pixel-prompt (#3142)
Auto-generated PR for branch: fix-pixel-prompt
    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Fixes the browser prompt to show scroll context in pages instead of raw
pixels and correctly detect content above/below the viewport. This makes
the page summary clearer and avoids misleading pixel counts.

- **Bug Fixes**
- Compute has_content_above/below from page_info using viewport-height
ratios.
  - Replace "N pixels above/below" with "{pages:.1f} pages above/below".
  - Guard against divide-by-zero when calculating page counts.

<!-- End of auto-generated description by cubic. -->
2025-09-17 11:23:12 -07:00
Magnus Müller 00d0574b96 Refactor AgentMessagePrompt to remove redundant elements_text assignments for pages above and below. This simplifies the code and improves readability. 2025-09-17 11:18:01 -07:00
Magnus Müller a6211d2df9 Refine page info reporting by removing viewport size details and current time from step info 2025-09-17 11:12:52 -07:00
Magnus Müller 9b6ae59006 Fix pixel below 2025-09-17 11:08:39 -07:00
Magnus Müller 84f00dd9d8 Merge branch 'fix-rerunning' of https://github.com/browser-use/browser-use into fix-rerunning 2025-09-16 22:38:50 -07:00
Magnus Müller d63292b3f2 Fix bounds handling in DOMInteractedElement to return None if bounds are not set; ensure proper closure of agent service after execution. 2025-09-16 22:38:49 -07:00
Magnus Müller dbff7a08da Merge branch 'main' into fix-rerunning 2025-09-16 22:22:32 -07:00
Magnus Müller 064c5ba016 Fix rerun with inital actions 2025-09-16 21:46:45 -07:00
Magnus Müller c6f8336a66 Fix open browser in rerunning 2025-09-16 17:47:16 -07:00
Saurav Panda 126d800df4 remove sensitive data from agent history and logging 2025-09-16 14:41:24 -07:00
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