browser-use provider: optional root-wss CDP swap (flag-gated, default off)#1
Open
reformedot wants to merge 7 commits into
Open
browser-use provider: optional root-wss CDP swap (flag-gated, default off)#1reformedot wants to merge 7 commits into
reformedot wants to merge 7 commits into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Behind
BROWSERARENA_CDP_ROOT_WSS(default off): rewrite thehttps://cdpUrl from/api/v3/browsersto a path-lesswss://<host>/beforeconnectOverCDP, so Playwright skips the/json/versionprobe and glut-edge resolves the debugger path (~52ms saved). Applied once increate()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.