feat: reliable browser challenge handoff and optional local Chrome - #645
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
guidovizoso,
mxmzb and
tylerslaton
as code owners
September 26, 2026 23:19
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.
Browser challenges could strand a Bot or let it continue with stale page state. This change detects Cloudflare Challenge Pages and conservative visible challenge signals, pauses computer actions, and lets a person take over the existing page. Handback resumes the exact request after a fresh snapshot; cancellation, expiry, and browser interruption remain distinct outcomes.
The viewer reconnects without releasing human control, and a reloaded conversation offers an explicit Resume task action for its pending browser tool. Managed browsing now uses full Chromium. Local API deployments can opt into installed Chrome with separate per-Bot profiles, a loopback endpoint, the browser sandbox retained, and shell execution disabled. Setup is documented in docs/configuration.md.
Validation:
Detection is deliberately conservative. Some embedded or score-only challenges are not automatically identifiable; model-requested handoff remains available. These checks establish the browser and handoff behavior, not guaranteed acceptance by Cloudflare, Google, or any other website.