Nick Sweeting
b512e08364
minor compat msg improvements and dead code removal
2025-05-17 05:10:31 -07:00
Nick Sweeting
e5cb0b2e15
Merge branch 'main' into browser-session
2025-05-17 04:56:45 -07:00
Nick Sweeting
90dad4a39a
refactor to use new BrowserSession model
2025-05-17 04:54:13 -07:00
Nick Sweeting
7635ec4e5c
fix revalidation of untrusted user config
2025-05-16 15:50:03 -07:00
Nick Sweeting
3e66046046
linter
2025-05-13 17:18:50 -07:00
Nick Sweeting
b4cd4af1c8
fix: when set sensitive_data, get allowed_domains,error ( #1623 )
2025-05-12 06:31:47 -07:00
Nick Sweeting
ca230dfeef
move security check after context config is set up
2025-05-12 06:30:03 -07:00
Nick Sweeting
21cb86e66a
Merge branch 'main' into back-to-playwright
2025-05-12 05:31:23 -07:00
Nick Sweeting
96682d8910
switch back from patchright to playwright until issues are resolved
2025-05-09 18:14:07 -07:00
mingzhong.li
fd98fe5c8b
fix: when set sensitive_data, but not set allowed_domains,will have error: 'Agent' object has no attribute 'browser'
2025-05-09 14:48:49 +08:00
Alezander9
96295d76d5
add source to telemetry event
2025-05-08 18:35:45 -07:00
Alezander9
72da31a9b1
Merge remote-tracking branch 'upstream/main' into refactor-telemetry
...
Merge upstream.
2025-05-06 10:32:57 -07:00
Alezander9
1ce846e683
modify signal handler to still log agent_event when agent run is cancelled by user
2025-05-06 10:31:53 -07:00
Nick Sweeting
84d3013aad
handle case where model responds with an object in a list
2025-05-06 17:38:11 +08:00
Nick Sweeting
28906fd5d6
print a warning if any required sensitive data keys are not defined
2025-05-04 20:18:52 +08:00
Nick Sweeting
7aefb50b4d
30sec is a little harsh, lower it
2025-05-04 18:48:08 +08:00
Nick Sweeting
8e6f4688d3
fix inverted condition
2025-05-04 18:16:43 +08:00
Nick Sweeting
beae1bff32
rename active_page to current_page for consistency
2025-05-04 17:51:34 +08:00
Nick Sweeting
db2271305a
show massive security warning if sensitive_data is set without allowed_domains restriction
2025-05-04 17:51:09 +08:00
Dharmendra Singh
b76265d36f
Rebase the brach and include CLA
2025-05-04 11:40:02 +05:30
Alezander9
d754ba9f47
add urls_visited to posthog info
2025-05-03 14:41:56 -07:00
Nick Sweeting
d08b402101
finish updating last few locations where nested window_size was used
2025-05-04 00:29:29 +08:00
Alezander9
7082d33d2a
refactor telemetry event to have only one event per agent run
2025-05-02 12:05:04 -07:00
Nick Sweeting
4f08369128
fix linter
2025-05-03 00:59:18 +08:00
Nick Sweeting
2b71f33f7e
Support Azure OpenAI API GPT-4 ( #1532 )
2025-05-02 09:58:20 -07:00
Nick Sweeting
2be4ba4f70
more pyupgrade changes
2025-05-02 20:50:21 +08:00
Nick Sweeting
66b3c26df5
add pyupgrade to lint rules
2025-05-02 15:21:23 +08:00
Nick Sweeting
78148a96f9
remove unneeded noqas
2025-05-02 15:20:00 +08:00
Max Comperatore
9289e0f7f2
Support Azure OpenAI API GPT-4
2025-05-01 14:09:43 +00:00
Magnus Müller
ffcde32832
Refactor _set_browser_use_version_and_source to accept an optional source parameter
2025-05-01 20:06:12 +08:00
Magnus Müller
db29a1c9d5
Track the source with an parameter
2025-05-01 20:04:31 +08:00
Nick Sweeting
3f97915045
Merge branch 'main' into feat/playwright-script-generation
2025-04-30 03:53:33 -07:00
Nick Sweeting
38ab6c156c
fix linter
2025-04-30 16:01:33 +08:00
RogelioRichmanAstronaut
0e5c676504
fix: Apply pre-commit linting fixes and improve Playwright example script execution
...
- Applied automated linting suggestions from pre-commit hooks, primarily updating type hints (e.g., Dict -> dict) and organizing imports.
- Refactored Playwright script execution in examples/features/playwright_script_generation.py to use asyncio.create_subprocess_exec for asynchronous handling and real-time log streaming, resolving ASYNC221 lint error and improving output visibility.
2025-04-30 00:05:36 -05:00
RogelioRichmanAstronaut
83b21d3124
Fix: Update Playwright script generator imports to use patchright
...
Update imports in Playwright script generation and helper files to use `patchright` instead of `playwright`, aligning with current project dependencies.
Co-Authored-By: Nick Sweeting <511499+pirate@users.noreply.github.com >
2025-04-29 23:32:09 -05:00
RogelioRichmanAstronaut
fea4e7759c
Refactor: Extract Playwright script helpers to separate file
...
Moved helper functions (replace_sensitive_data, _try_locate_and_act, PlaywrightActionError) from a multiline string within PlaywrightScriptGenerator into browser_use/agent/playwright_script_helpers.py.
This allows linters and type checkers to analyze the helper code, improving maintainability and code quality. The generator now reads the helper file content dynamically.
Co-Authored-By: Nick Sweeting <511499+pirate@users.noreply.github.com >
2025-04-29 23:25:44 -05:00
RogelioRichmanAstronaut
c7fbc7e071
Chore: Remove unnecessary LLM comments
...
Remove comments automatically added by the LLM in agent-related files.
Removed comments from:
- browser_use/agent/playwright_script_generator.py
- browser_use/agent/service.py
- browser_use/agent/views.py
These comments were redundant and cluttered the code.
2025-04-29 20:23:44 -05:00
Nick Sweeting
05c89118ea
Merge pull request #1257 from KamilU01/main
2025-04-29 09:40:19 -07:00
Nick Sweeting
51f09b85aa
Merge branch 'main' into feat/playwright-script-generation
2025-04-28 20:11:41 -07:00
Nick Sweeting
5a8d15ecf1
Merge pull request #1478 from Ekac00/fix-gif-chinese
2025-04-27 13:35:39 -07:00
Nick Sweeting
07b5b36976
fix linter issues
2025-04-28 04:34:16 +08:00
Nick Sweeting
f3f42cf7f8
Update browser_use/agent/gif.py
2025-04-27 16:26:14 -04:00
Nick Sweeting
753f29ce37
Apply suggestions from code review
2025-04-27 16:24:42 -04:00
Nick Sweeting
1c4f523630
simplify and remove chinese comments in source code
2025-04-27 16:24:21 -04:00
Nick Sweeting
d781a3faab
fix lint errors
2025-04-28 04:06:19 +08:00
Nick Sweeting
072de0dcf8
no need to make a dict just to unwrap it immediately
2025-04-27 16:02:17 -04:00
shyanilMishra
c94e8e4f7c
Handle empty model output action with retry and safe fallback part 2
2025-04-27 23:02:08 +05:30
Ekac00
a683ae94bc
Merge branch 'fix-gif-chinese' of https://github.com/Ekac00/browser-use into fix-gif-chinese
2025-04-27 17:31:40 +08:00
Ekac00
5ed79628ab
Modify the comment language to English
2025-04-27 17:30:28 +08:00
Nick Sweeting
c0c3ab19bc
fix import order
2025-04-26 23:26:14 -04:00