Skip to content

Opt into the built-in Browserbase extension - #2462

Open
miguelg719 wants to merge 10 commits into
feat/resident-extension-buildfrom
feat/browserbase-resident-opt-in
Open

Opt into the built-in Browserbase extension#2462
miguelg719 wants to merge 10 commits into
feat/resident-extension-buildfrom
feat/browserbase-resident-opt-in

Conversation

@miguelg719

@miguelg719 miguelg719 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • request the image-owned Stagehand extension through browserSettings.extensions
  • select resident auto-attach for Browserbase sources
  • preserve and deduplicate other requested built-in extensions
  • preserve top-level extensionId for customer-uploaded extensions
  • remove per-session Stagehand extension upload and deletion
  • keep local and custom-CDP extension loading unchanged

Scope

Stack 2/6, based on the init-first protocol PR. This PR changes Browserbase session provisioning and source selection only.

Rollout note

The Browserbase smoke remains opt-in until the corresponding private browser image and Core support are deployed. Unit coverage for exact request construction remains active.

Validation

  • complete TypeScript/package/rule suite on this branch
  • Browserbase session, browser-source, and client-schema tests
  • generated protocol/Python model checks
  • pnpm check

Summary by cubic

Opt into Browserbase’s built-in Stagehand extension via browserSettings.extensions and auto-attach resident connections for Browserbase sources. Unify Browserbase settings and validation across the protocol, TS, and Python SDKs.

  • New Features

    • Add extensions to Browserbase browser settings (protocol JSON/TS types and Python/TS SDKs) with BrowserbaseExtension enum: onepassword, browser-events, stagehand.
    • Always append stagehand, dedupe, and preserve order.
    • Auto-attach resident connections in the Browserbase browser source.
  • Refactors

    • Remove per-session Stagehand upload/cleanup; drop helper and tests using @browserbasehq/sdk. Remove the packaged extension archive and build copy; update package contract to not assert the zip.
    • Keep top-level extensionId for uploaded customer extensions; reject nested browserSettings.extensionId.
    • Make Browserbase browser settings strict (no extra properties) across protocol, TS, and Python; validate built-in names.
    • Switch smoke opt-in flag to BROWSERBASE_RESIDENT_SMOKE until image/Core rollout.

Written for commit 0c2fb5f. Summary will update on new commits.

Review in cubic

@changeset-bot

changeset-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0c2fb5f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@miguelg719
miguelg719 force-pushed the feat/browserbase-resident-opt-in branch from edbbab6 to 8e07913 Compare July 27, 2026 23:15
@miguelg719
miguelg719 changed the base branch from feat/stagehand-init-first-rpc to feat/resident-extension-build July 27, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant