Skip to content

Playwright native context identity CDP type rejects Cloudflare SDK #779

Description

@kamilio

Validated against current public safe-bash 0.1.691 and actual @cloudflare/playwright 1.3.6 declarations: PlaywrightContext.newCDPSession promises the full string/Record storage CDP interface, while the native SDK generic protocol sender returns concrete command interfaces without index signatures. Maintained consumer typecheck fails even after exact owned-page admission adapts the page parameter safely. A static fixture importing the real SDK reproduces two TS2322 errors.

The context identity binder only needs Target.getTargetInfo and detach. Narrow that public identity contract without changing the full private storage-lease protocol or weakening runtime target/context identity validation. Preserve generic custom host compatibility and add maintained type/runtime regressions. Dedicated home worktree worker has reproduced RED and has a focused patch; coordinator owns atomic direct-main delivery and GitHub release monitoring.

Activity

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