Update browser_session definition for newer BU vers. #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Updating the browser_session definition to reflect viewport handling changes in recent versions of browser-use (<0.7.0). The BrowserSessionCustomResize workaround is no longer required in the latest release. It remains available for users who choose to run older versions of browser-use, where custom resizing is still necessary.
Implementation Checklist
Docs
Visual Proof
Updated an example repo to match the uvlock + code snippet set up and confirm it was working still.
Related Issue
Fixes x.com comment left by a User.
TL;DR
Removes the
BrowserSessionCustomResizeworkaround from the Pythonbrowser-usetemplate, as it's no longer required for recent versions of thebrowser-usepackage.Why we made these changes
Recent versions of the
browser-usepackage (>=0.7.0) handle viewport resizing automatically, making our custom workaround obsolete. This change simplifies the template for users on the latest version and addresses user feedback. The workaround remains available for users running older versions.What changed?
browser_sessiondefinition in the Pythonbrowser-usetemplate to remove the custom viewport resizing logic.BrowserSessionCustomResizeclass is no longer necessary for the default setup, simplifying the template's code.Description generated by Mesa. Update settings