Skip to content

browser-use provider: optional root-wss CDP swap (flag-gated, default off)#1

Open
reformedot wants to merge 7 commits into
mainfrom
cdp-root-wss-swap
Open

browser-use provider: optional root-wss CDP swap (flag-gated, default off)#1
reformedot wants to merge 7 commits into
mainfrom
cdp-root-wss-swap

Conversation

@reformedot

Copy link
Copy Markdown
Owner

Behind BROWSERARENA_CDP_ROOT_WSS (default off): rewrite the https:// cdpUrl from /api/v3/browsers to a path-less wss://<host>/ before connectOverCDP, so Playwright skips the /json/version probe and glut-edge resolves the debugger path (~52ms saved). Applied once in create() so both benchmark call sites benefit.

Default off keeps raw https:// (Playwright still probes). Enable only after the prod glut edge root rewrite is verified.

reformedot and others added 7 commits May 30, 2026 14:35
Switch the Browser Use provider from the v2 to the v3 API and create
sessions proxyless by sending proxyCountryCode: null (the v3 API defaults
to "us" otherwise). Point the stop (PATCH action: stop) and recording
session lookup at v3 as well.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Run Browser Use sessions proxyless on the v3 API
Behind BROWSERARENA_CDP_ROOT_WSS (default off), rewrite the returned
https:// cdpUrl to a path-less wss://<host>/ before connectOverCDP, so
Playwright skips the /json/version probe and glut-edge resolves the
debugger path (~52ms). Default off preserves the raw https:// behavior.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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