web-ui icon indicating copy to clipboard operation
web-ui copied to clipboard

How do I avoid opening incognito mode

Open thegreatref opened this issue 8 months ago • 6 comments

thegreatref avatar May 03 '25 19:05 thegreatref

You must set your Chrome browser path and User data directory in the Browser Settings and check the Use Own Browser field to use your own existing chrome profile.

MeshkatShB avatar May 04 '25 15:05 MeshkatShB

I get this error Did you manage to get it working with you own browser?

state[block._id] = block.class(**kwargs) INFO [agent] 🚀 Starting task: a INFO [agent] 📍 Step 1 ERROR [browser] Failed to initialize Playwright browser: '--remote-debugging-port=9222' ERROR [browser] ❌ Failed to create new browser session: '--remote-debugging-port=9222' (did the browser process quit?) WARNING [browser] ⚠️ Page load failed, continuing... ERROR [browser] Failed to initialize Playwright browser: '--remote-debugging-port=9222' ERROR [browser] ❌ Failed to create new browser

thegreatref avatar May 04 '25 17:05 thegreatref

Thanks, finally got it to work

Do you know if there is any way to set the use own browser with hard code instead of toggling it on the front end

thegreatref avatar May 04 '25 17:05 thegreatref

Glad it worked!

In the webui/components/browser_settings_tab.py file at line 53, you can set the default value to true, so that every time you run the code, it will be activated.

So, it should be like below:

value=True,

MeshkatShB avatar May 06 '25 09:05 MeshkatShB

Thanks, finally got it to work

Do you know if there is any way to set the use own browser with hard code instead of toggling it on the front end

@thegreatref How did you get it to work? I have tried everything, fresh VM install, fresh Chrome, restarts, etc.

I keep getting:

ERROR    [browser] ❌  Failed to create new browser session: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the instance. (did the browser process quit?)
WARNING  [browser] ⚠️  Page load failed, continuing...
ERROR    [browser] ❌  Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::1:9222
Call log:
  - <ws preparing> retrieving websocket url from http://localhost:9222

Everything works fine with the default incognito mode chromium.

serge402 avatar May 11 '25 12:05 serge402

Thanks, finally got it to work Do you know if there is any way to set the use own browser with hard code instead of toggling it on the front end

@thegreatref How did you get it to work? I have tried everything, fresh VM install, fresh Chrome, restarts, etc.

I keep getting:

ERROR    [browser] ❌  Failed to create new browser session: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the instance. (did the browser process quit?)
WARNING  [browser] ⚠️  Page load failed, continuing...
ERROR    [browser] ❌  Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::1:9222
Call log:
  - <ws preparing> retrieving websocket url from http://localhost:9222

Everything works fine with the default incognito mode chromium.

The eror is likely because you are running web-ui from your chrome browser while also trying to initiate an agent that uses the chrome bowser. Web-ui requres different browser instances so you either have to close chrome and open web-ui using another browser, or you change the target browser for the agent

Uyonoh avatar May 16 '25 22:05 Uyonoh