Commit Graph

4189 Commits

Author SHA1 Message Date
Nick Sweeting 1d0ff6617b Merge pull request #1179 from browser-use/ctrl-c-improvements
Refactor ctrl-c handling to separate class
2025-03-27 17:36:49 -07:00
Nick Sweeting 88611d6561 dont store pause msgs in memory 2025-03-27 17:36:36 -07:00
Nick Sweeting 3bbb0bece7 Merge pull request #1028 from carlosplanchon/direct_html_manipulation
Adding parameter to Agent.run() in order to allow the developer to execute a custom Python function after Agent.step() (updated)
2025-03-27 17:33:03 -07:00
Nick Sweeting 363382a5bc better handling of cancelled tasks, more DRY second ctrlc handling, and colorized output 2025-03-27 17:32:12 -07:00
Nick Sweeting ad3080353b refactor ctrl-c handling to separate class 2025-03-27 17:13:00 -07:00
Nick Sweeting 56aae21033 implement pause and resume with Ctrl+C 2025-03-27 16:30:15 -07:00
Nick Sweeting bc71fd6d46 implement pause and resume with Ctrl+C 2025-03-27 16:29:59 -07:00
Nick Sweeting 251e041933 properly cancel current step when browser is closed or disconnected 2025-03-27 16:01:59 -07:00
Nick Sweeting aabd8bb172 properly verify LLM api keys on startup 2025-03-27 16:01:25 -07:00
Carlos Andrés Planchón Prestes 5f20a1c994 Rewriting AgentHookFunc definition as AgentHookFunc = Callable[['Agent'], None] 2025-03-27 19:17:29 -03:00
Carlos Andrés Planchón Prestes a97212cb53 Adding AgentHookFunc = Callable 2025-03-27 18:56:14 -03:00
Carlos Andrés Planchón Prestes a1c0719ee2 Renaming before_step_func and after_step_func to on_step_start and on_step_end. 2025-03-27 18:54:33 -03:00
Carlos A. Planchón 78be25ac83 Update browser_use/agent/service.py
Co-authored-by: Nick Sweeting <github@sweeting.me>
2025-03-27 18:49:21 -03:00
Nick Sweeting 26011fafbb verify LLM API keys work on startup 2025-03-27 14:45:52 -07:00
Carlos A. Planchón 345494f51a Merge branch 'browser-use:main' into direct_html_manipulation 2025-03-27 18:23:40 -03:00
Nick Sweeting 649e3fa757 kill chrome subprocess if keep_alive=False 2025-03-27 14:03:56 -07:00
Nick Sweeting 6be5956244 Merge pull request #1046 from ProphetDiceBot/main
Add dolphin browser driver support
2025-03-27 12:35:15 -07:00
Nick Sweeting 524eda1436 Merge pull request #1133 from pirate/browser-launch-flags
Improve chrome launch flags, chrome-in-docker support, anti-fingerprinting, and deterministic rendering
2025-03-27 11:45:51 -07:00
Nick Sweeting 1de886b82a fix too many tabs 2025-03-27 11:30:20 -07:00
Nick Sweeting b1142a5957 properly clear input elements before typing in text 2025-03-27 11:27:13 -07:00
Nick Sweeting a606857b8f tweak context setup debug logging 2025-03-27 11:27:04 -07:00
Nick Sweeting 5bd0715fb8 make sure docker env var is visible in example env and loaded properly 2025-03-27 11:26:52 -07:00
Nick Sweeting ef0239183e fix logging 2025-03-27 11:13:42 -07:00
Nick Sweeting e6900d1287 add ruff dependency 2025-03-27 11:10:41 -07:00
jersobh 369ad2e3b6 add better click to css selector as well 2025-03-27 16:23:52 +00:00
jersobh f6960ad80e improving the element click to fallback to js evaluate; use optional element type 2025-03-27 16:21:09 +00:00
Anish Hiranandani 5c83d75a7e deleted deprecated file 2025-03-27 09:04:05 -07:00
Anish Hiranandani 45ab623bff moved llm api env vars dict to agent views 2025-03-27 09:03:56 -07:00
Nick Sweeting 1252f76290 add better logging emojis 2025-03-27 02:45:14 -07:00
Nick Sweeting 69a960fa4b refactor browser config setup process 2025-03-27 02:45:12 -07:00
Nick Sweeting ff14e42b83 user profile is managed by plawright instead of flags 2025-03-27 02:43:45 -07:00
Nick Sweeting e28791587b remove chrome duplicate args while retaining ordering 2025-03-27 02:30:19 -07:00
Anish Hiranandani 9ea07efdc4 support for reasoning models o1, o1-mini, etc for planner 2025-03-26 19:44:09 -07:00
Anish Hiranandani cb94e466d1 Unrelated typo fix from #920 2025-03-26 18:16:41 -07:00
Anish Hiranandani d6133380e7 Merge branch 'main' into feature/exception-handling-llm-call 2025-03-26 18:04:54 -07:00
Anish Hiranandani 732cedae57 Added LLMException to planner call 2025-03-26 18:00:47 -07:00
Nick Sweeting ae9f68bcab Merge branch 'main' into browser-launch-flags 2025-03-26 16:57:48 -07:00
Nick Sweeting e8ef8ea622 Merge pull request #736 from YonderUrik/ollama-failed-parsing-error
Fallback when LLM doesn't produce expected tool call format
2025-03-26 16:54:40 -07:00
Nick Sweeting a565ff9bcd Merge branch 'main' into browser-launch-flags 2025-03-26 16:52:25 -07:00
Nick Sweeting b47c20c780 Merge branch 'main' into Click-on-non-indexed-elements 2025-03-26 16:50:35 -07:00
Nick Sweeting b4f96243a8 Merge branch 'main' into browser-launch-flags 2025-03-26 16:47:13 -07:00
Nick Sweeting 8f6815768a fix error when checking cdp url for firefoxness 2025-03-26 16:18:20 -07:00
Daniele Roccaforte 1c7d543bfd Merge branch 'main' of https://github.com/browser-use/browser-use into ollama-failed-parsing-error
* 'main' of https://github.com/browser-use/browser-use: (269 commits)
  fix for follow_up_tasks example
  fix for current page detection grabbing a chrome extension service worker
  add support for close_tab action
  disable cross-origin iframes support for now
  fix: update hatch build includes for correct package structure
  fix the simple example
  typofix
  fix error: name 'browser_class' is not defined
  Updated readme
  streamlined to match other examples
  Added env variables in example
  Update custom-functions.mdx
  fix spaces vs tabs
  Update supported-models.mdx
  fix chrome connecting to extension context by accident
  fix broken BrowserConfig chrome_instance_path kwarg
  simplify test task
  fix removing contenteditable check by accident
  tweak salesforce test cross-origin iframe task
  ignore invisible and irrelevant cross-origin-iframes
  ...
2025-03-26 23:45:07 +01:00
Anish Hiranandani 74223fcf89 integrated check env in agent service 2025-03-26 15:20:40 -07:00
Anish Hiranandani c2332f0e96 added required env variables mapping + check env func in utils 2025-03-26 15:20:24 -07:00
Nick Sweeting 16879e4833 fix for current page detection grabbing a chrome extension service worker 2025-03-26 14:44:50 -07:00
Anish Hiranandani 96456958fa Update browser_use/agent/service.py
change LLMException error message

Co-authored-by: Nick Sweeting <github@sweeting.me>
2025-03-26 14:39:36 -07:00
Nick Sweeting 85fc7c7e90 add support for close_tab action 2025-03-26 14:07:03 -07:00
Nick Sweeting c0d5da1e49 disable cross-origin iframes support for now 2025-03-26 13:02:58 -07:00
Jeff Andrade 0e5e108e10 Merge branch 'browser-use:main' into Click-on-non-indexed-elements 2025-03-26 09:37:09 +00:00