Skip to content

browser: open sign-in takeovers as a plain Chrome so Google accepts them #380

Closed

Description

@ElbertePlinio

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:

  1. Create a desktop session with --viewer.
  2. 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>
  3. 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-features list. 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_takeover on 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

  1. changed the title [-]browser: Google rejects sign-in in lab sessions[/-] [+]browser: open sign-in takeovers as a plain Chrome so Google accepts them[/+] on Oct 30, 2026
  2. ElbertePlinio commented on Oct 30, 2026

    @ElbertePlinio
    MemberAuthor

    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.

    Launch Result
    Plain Chrome Accepted
    Every browser session flag except --remote-debugging-pipe (Gaia sink, GCM and component sinks, --disable-features list, --password-store=basic, the rest) Accepted
    Plain Chrome plus --remote-debugging-pipe, pipe open, no client commands Rejected
    Browser session as created today Rejected

    Remote debugging alone is the signal. With --remote-debugging-pipe or --remote-debugging-port, Chrome sets navigator.webdriver to true even when no client sends a command. Plain Chrome reports false.

    What this means for the plan:

    • The plain launch can keep every other session flag and drop only the pipe. Keeping --password-store=basic matters: 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.
    • Hiding navigator.webdriver is out of scope. Sign-in stays a human step in a browser with no remote debugging.
    • Whether a Google session survives a relaunch under CDP still needs a real sign-in.
  3. ElbertePlinio commented on Oct 31, 2026

    @ElbertePlinio
    MemberAuthor

    Relaunch check, 2026-10-31, Google Chrome 156 on Linux, with a real Google account in an isolated Pickforge home.

    1. A desktop session ran plain Chrome on a named profile with every browser session flag except --remote-debugging-pipe. --password-store=basic was kept.
    2. A person signed in through watch --control. Google accepted it.
    3. Chrome was stopped with SIGTERM, which wrote the cookies to disk, and the desktop session was destroyed.
    4. 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 --control failed with "Native viewer host exited during startup" when the installed pickforge-viewer was the 0.7.1 release. Both report version 0.7.1, so the version check passes. A viewer built from the same checkout worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions