Skip to content

fix(tools): apply Browser Use headless profile - #276

Open
MagMueller wants to merge 1 commit into
ANative-Lab:mainfrom
MagMueller:agency/fix-browser-use-current-api
Open

fix(tools): apply Browser Use headless profile#276
MagMueller wants to merge 1 commit into
ANative-Lab:mainfrom
MagMueller:agency/fix-browser-use-current-api

Conversation

@MagMueller

Copy link
Copy Markdown

What

  • pass BrowserProfile(headless=...) to the current Browser Use Agent
  • keep the legacy browser-use-py310x kwargs path for Python 3.10
  • reject unsupported Firefox and WebKit choices instead of silently ignoring them
  • add regression tests for the current Browser Use configuration path

Why

BrowserUseBase stores browser_type and headless, then passes them as extra Agent kwargs. Current Browser Use accepts those kwargs but does not apply them, so EvoAgentX's default headless=True can still launch a visible browser.

Validation

  • focused tests on Python 3.11 with Browser Use 0.13.8: 2 passed
  • Browser Use 0.13.8 applies BrowserProfile(headless=True)
  • ruff check tests/test_browser_use.py
  • ruff format --check tests/test_browser_use.py
  • repository-wide Ruff baseline unchanged: 6,240 diagnostics on main and this branch
  • git diff --check
  • TruffleHog: 0 verified and 0 unverified secrets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant