Repository navigation
Description
Google rejects sign-in in browser lab sessions. After an email address is submitted, accounts.google.com shows "Couldn't sign you in. This browser or app may not be secure."
This happens with the old --gaia-url sink and with the --gaia-config-contents sink from #348, on Chrome stable and Chromium 155, in a named profile. The sink is not the cause. Google probably detects the CDP-controlled browser.
Found while checking Google SSO for #348.
What works (2026-10-30, Pickforge 0.7.1)
The same block came back in a browser session with a named profile and request_takeover. This path worked:
- Create a
desktopsession with--viewer. - Launch plain Chrome on the named profile, with no DevTools pipe and no network sinks:
pickforge-lab desktop launch --session <id> --wait-window Chrome -- google-chrome-stable --user-data-dir=$HOME/.pickforge/lab/profiles/<name> --no-first-run --no-default-browser-check <url> - Call
request_takeover. The person signs in.
Google accepted the sign-in, and so did Microsoft 365. The agent then drove Google Docs and Word Online with desktop click, type, key and screenshot.
Plan
Make this the default. A sign-in always opens the browser in the way that works, with no flag for the agent to remember.
- Find the signal. Start from the plain launch and add one thing at a time: the DevTools pipe, the Gaia sink, the network sinks, the
--disable-featureslist. Record which one Google rejects. - Add a plain launch to the browser package: the same profile directory, no
--remote-debugging-pipe, and none of the flags the test above blames. Keep the reserved-argument checks. -
request_takeoveron a browser session closes the CDP Chrome, opens the same profile as a plain Chrome on the session display, and waits for the person. A profile directory can only be open once, so close before relaunch. - When the takeover returns, close the plain Chrome and relaunch the profile with the pipe. Check that cookies and the Google session survive under CDP.
- Document the fallback: if a site signs the session out again under CDP, use a desktop session with plain Chrome and desktop input. The relaunch check kept the Google session, and a sign-out under CDP cannot be detected reliably, so this stays a documented step.
- Tests: the plain launch has no remote debugging flag; relaunch keeps the profile directory; takeover returns to a CDP session with the same profile.
- Document the flow in the README, then close this issue with the evidence. The agent guide in docs: one agent guide for logged-in browser work, from login handoff to return #373 picks it up from there.
Activity
[-]browser: Google rejects sign-in in lab sessions[/-][+]browser: open sign-in takeovers as a plain Chrome so Google accepts them[/+]ElbertePlinio commentedon Oct 30, 2026
Bisect result, Google Chrome 156.0.8078.79 on Linux, 2026-10-30. Each run used a fresh profile in an isolated desktop session and submitted an address that does not exist. Google answers "Couldn't find this account" when it accepts the browser, and "Couldn't sign you in" when it rejects it, so no real account is needed for this check.
--remote-debugging-pipe(Gaia sink, GCM and component sinks,--disable-featureslist,--password-store=basic, the rest)--remote-debugging-pipe, pipe open, no client commandsRemote debugging alone is the signal. With
--remote-debugging-pipeor--remote-debugging-port, Chrome setsnavigator.webdriverto true even when no client sends a command. Plain Chrome reports false.What this means for the plan:
--password-store=basicmatters: Chrome encrypts cookies with a key from the password store, so a plain launch with the system keyring could save cookies that the CDP relaunch cannot read.navigator.webdriveris out of scope. Sign-in stays a human step in a browser with no remote debugging.ElbertePlinio commentedon Oct 31, 2026
Relaunch check, 2026-10-31, Google Chrome 156 on Linux, with a real Google account in an isolated Pickforge home.
--remote-debugging-pipe.--password-store=basicwas kept.watch --control. Google accepted it.session create --type browser --profile <name>opened the same profile with--remote-debugging-pipe.Under CDP, myaccount.google.com, Gmail and Google Docs all opened signed in. The Google session survives the relaunch. Screenshots stay on the author's machine because they show account data.
So the plan holds: sign in on a plain Chrome, then relaunch the profile under CDP. The fallback to desktop input stays in the plan, in case Google later signs the session out under CDP.
Side finding: with a source build,
watch --controlfailed with "Native viewer host exited during startup" when the installedpickforge-viewerwas the 0.7.1 release. Both report version 0.7.1, so the version check passes. A viewer built from the same checkout worked.