Skip to content

Let agents set cookies in the collaborative browser #6111

Description

@Konan69

Problem

Preview automation can navigate authenticated pages, but it cannot set cookies in the environment-scoped Electron browser partition. Agents must fall back to a separate browser, so the collaborative preview no longer reflects the same session or remote environment.

This is a generic cookie-setting capability. It must not depend on Better Auth or on where the cookie value came from.

Expected behavior

  • Expose a preview automation operation that accepts standard cookie fields: URL, name, value, domain, path, secure, HTTP-only, SameSite, and expiration.
  • Apply the cookie to the selected environment isolated preview partition.
  • Preserve isolation between environments.
  • Return typed failures without exposing cookie values.
  • Continue to support clearing cookies through the existing reverse operation.

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