Skip to content

test(playwright): probe playwright-cli attach --extension against a real signed-in Chrome on a local machine #6475

Closed as not planned

Description

@kyle-sexton

Goal

Find out whether @playwright/cli 0.1.22's attach --extension (and attach --cdp) can drive the user's own signed-in Chrome on a local workstation, as a candidate for ADR 0056's "Needs a logged-in session" rubric row (now in testing:run-e2e context/e2e.md).

It cannot be tried from a cloud container: it needs a real Chrome profile with the Playwright browser extension installed, which only exists on a local machine.

What 0.1.22 documents

playwright-cli attach --help:

--cdp         connect to an existing browser via cdp endpoint url.
--extension   connect to browser extension, optionally specify browser name (e.g. --extension=chrome)
--session     session name (defaults to bound browser name or "default")
--idle-timeout  detach after this many milliseconds without a command. attached browsers are never detached by default.

Probes (run each and record pass/fail with the exact command and error)

  1. Windows shell, native Chrome: install the Playwright extension in the signed-in Chrome profile, run playwright-cli attach --extension=chrome, then goto a site the profile is signed in to, snapshot, and screenshot. Does it reuse the signed-in session? What consent prompt appears, and does it need a human click every time?
  2. WSL2 (NAT networking), same Windows Chrome: repeat probe 1 from WSL2. ADR 0056 notes Chrome 136+ ignores remote-debugging switches on the default profile, so --cdp to the default profile is expected to fail. Check whether --extension gets around that from WSL2.
  3. attach --cdp against a separate, non-default Chrome profile started with a debugging port (Windows shell, then WSL2 via the gateway IP). Record what works.

The former probe 4 (agent-browser on WSL2) is dropped: the 2026-10-07 benchmark found no reliability winner and agent-browser was not adopted, so it is no longer a candidate.

Done when

  • Each probe has a recorded result (command, OS/shell, Chrome version, outcome, error text).
  • If probe 1 or 2 passes, propose a rubric row for the logged-in-session case in testing:run-e2e (context/e2e.md) and an ADR 0056 note. If both fail, add them to ADR 0056 "Alternatives considered" with the reason.

Related

Activity

  1. added
    needs-triage
    on Oct 6, 2026
  2. github-actions commented on Oct 6, 2026

    @github-actions
    Contributor

    Thanks for the detailed write-up. I understand this as a set of four manual probes of @​playwright/cli 0.1.22's attach --extension and attach --cdp against a real signed-in Chrome profile (Windows shell and WSL2), feeding into ADR 0056's "needs a logged-in session" rubric row and its Claude-in-Chrome-from-WSL open item. The scope, done-when criteria, and related ADR/branch references are all clear.

    This can't run in a cloud container — it needs a human at a local Windows/WSL2 machine with the Playwright browser extension installed in a real signed-in Chrome profile — so flagging it as something a person at their own workstation needs to pick up rather than something an automated lane can execute. No duplicates found in open or closed issues.

    Automated triage. A maintainer reviews it.

  3. added
    help wanted
    on Oct 6, 2026
  4. added theissue type on Oct 12, 2026
  5. added
    needs-human
    and removed
    needs-triage
    on Oct 12, 2026
  6. kyle-sexton commented on Oct 19, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Held for a person: The probes need a person at a local Windows/WSL2 machine with the Playwright extension installed in a signed-in Chrome profile; no lane can run them.

  7. kyle-sexton commented on Oct 22, 2026

    @kyle-sexton
    MemberAuthor

    Closed not planned under the owner's 2026-10-21 posture: four manual probes against a signed-in Chrome, which only the owner at a desk can run, feeding one ADR open item. Reopen if that ADR item becomes load-bearing.

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

    help wantedneeds-human

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions