browser-use icon indicating copy to clipboard operation
browser-use copied to clipboard

Enable Code use with Real Browser

Open kalil0321 opened this issue 3 months ago • 1 comments

Summary by cubic

Enable CodeAgent to use a real Chrome browser and protect the default profile by copying it (and Local State) to a temp user-data directory. Also ensures provided BrowserSession instances are correctly started.

  • New Features

    • Automatically copies the selected Chrome profile to a temp user-data dir, including “Local State”, to avoid corrupting the default profile.
    • Applies only to Chrome channels; Edge and others keep their existing behavior.
    • Updated real-browser docs with an asyncio main entry point.
  • Bug Fixes

    • If a BrowserSession is provided, start it when needed to attach watchdogs once (no duplicate attachments).
    • Adjusted tests to validate temp-dir copying for Chrome and no copying for Edge.

Written for commit ef842fd02905ed2a141d5f9e57ca7af1f2c49733. Summary will update automatically on new commits.

kalil0321 avatar Oct 26 '25 20:10 kalil0321

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on December 22.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

cursor[bot] avatar Nov 26 '25 20:11 cursor[bot]