Skip to content

Bump browser-use to 0.13.8 in Python template - #239

Open
dprevoznik wants to merge 3 commits into
mainfrom
hypeship/bump-browser-use-0-13-8
Open

Bump browser-use to 0.13.8 in Python template#239
dprevoznik wants to merge 3 commits into
mainfrom
hypeship/bump-browser-use-0-13-8

Conversation

@dprevoznik

@dprevoznik dprevoznik commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bumps the browser-use dependency floor from >=0.11.1 to >=0.13.8 in the kernel create --template browser-use Python template
  • Re-locks uv.lock so uv sync picks up 0.13.8 instead of resolving to the previously-frozen 0.11.1
  • No code changes needed in main.py / session.py — the Browser/Agent constructor surface (cdp_url, headless, window_size, viewport, device_scale_factor) is unchanged across these releases

Test plan

  • uv lock --upgrade-package browser-use resolved cleanly to 0.13.8
  • uv sync installed the template's dependency set without conflicts
  • Ran the template's main.py flow (Kernel browser -> Browser(cdp_url=...) -> Agent(...).run()) end-to-end against a live Kernel cloud browser; agent navigated to example.com and correctly extracted the page title

Note

Low Risk
Sample-template dependency and lockfile updates with removal of obsolete workaround code; behavior change risk is mainly from the large kernel SDK version jump, which the author exercised end-to-end.

Overview
Updates the browser-use Python Kernel template to browser-use>=0.13.8 and kernel>=0.97.0, with uv.lock refreshed for the new resolution tree.

Because newer browser-use handles CDP viewport/window sizing correctly, the template drops session.py and the BrowserSessionCustomResize workaround that existed for older releases. main.py only loses a stale commented alternative for browser_session; the live path still uses Browser(cdp_url=...) and Agent(..., browser_session=browser).

Reviewed by Cursor Bugbot for commit 2557974. Bugbot is set up for automated code reviews on this repo. Configure here.

Lockfile was frozen at 0.11.1 since the template was added. Core
Browser/Agent API is unchanged between the two releases; re-locked
and smoke-tested against a live Kernel browser.
@socket-security

socket-security Bot commented Sep 1, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedpypi/​browser-use@​0.11.1 ⏵ 0.13.883 -7100100100100

View full report

@masnwilliams masnwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blocking findings.

Verified the regenerated lockfile against pyproject.toml, installed the locked environment on Python 3.11, checked package compatibility, imported and constructed the updated Browser Use and Kernel SDK surfaces, scaffolded the template, and ran the CLI test suite.

Non-blocking follow-up: pkg/templates/python/browser-use/session.py is an obsolete compatibility shim for Browser Use versions below 0.7.9 and can be deleted separately.

@dprevoznik

Copy link
Copy Markdown
Contributor Author

Non-blocking follow-up: pkg/templates/python/browser-use/session.py is an obsolete compatibility shim for Browser Use versions below 0.7.9 and can be deleted separately.

@masnwilliams i am actually going to remove this too. good callout

@dprevoznik

Copy link
Copy Markdown
Contributor Author

Removed the obsolete session.py compat shim (browser-use < 0.7.9) in 2557974 — addresses @masnwilliams's follow-up.

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.

2 participants