Bump browser-use to 0.13.8 in Python template - #239
Conversation
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.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
masnwilliams
left a comment
There was a problem hiding this comment.
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.
@masnwilliams i am actually going to remove this too. good callout |
|
Removed the obsolete |
Summary
browser-usedependency floor from>=0.11.1to>=0.13.8in thekernel create --template browser-usePython templateuv.locksouv syncpicks up 0.13.8 instead of resolving to the previously-frozen 0.11.1main.py/session.py— theBrowser/Agentconstructor surface (cdp_url,headless,window_size,viewport,device_scale_factor) is unchanged across these releasesTest plan
uv lock --upgrade-package browser-useresolved cleanly to 0.13.8uv syncinstalled the template's dependency set without conflictsmain.pyflow (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 titleNote
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.8andkernel>=0.97.0, withuv.lockrefreshed for the new resolution tree.Because newer browser-use handles CDP viewport/window sizing correctly, the template drops
session.pyand theBrowserSessionCustomResizeworkaround that existed for older releases.main.pyonly loses a stale commented alternative forbrowser_session; the live path still usesBrowser(cdp_url=...)andAgent(..., browser_session=browser).Reviewed by Cursor Bugbot for commit 2557974. Bugbot is set up for automated code reviews on this repo. Configure here.