Skip to content

Make stagehand.init the first runtime RPC - #2461

Open
miguelg719 wants to merge 7 commits into
v4-spikefrom
feat/stagehand-init-first-rpc
Open

Make stagehand.init the first runtime RPC#2461
miguelg719 wants to merge 7 commits into
v4-spikefrom
feat/stagehand-init-first-rpc

Conversation

@miguelg719

@miguelg719 miguelg719 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • remove runtime.configure and runtime.loopback_status from the public protocol
  • move protocol metadata, logging, telemetry, and optional browser CDP handoff into stagehand.init
  • make stagehand.init the first Stagehand RPC in TypeScript and Python
  • preserve explicit-CDP local and custom-browser behavior

Scope

Stack 1/6, targeting v4-spike directly. This PR changes only the initialization contract and client handoff; it does not add resident transport or worker lifecycle behavior.

Review focus

Browserbase can omit a CDP URL once later PRs supply an already-connected resident session. Local and custom sources continue to pass their resolved CDP URL through stagehand.init.

Validation

  • protocol, TypeScript SDK, Python SDK, runtime, and RPC coverage
  • exact Python formatting, lint, generated-model, and test checks
  • complete TypeScript/package/rule suite at the stack tip

@changeset-bot

changeset-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f732df4

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

…-init-first-rpc

# Conflicts:
#	packages/sdk-ts/src/rpcClient.ts

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread packages/sdk-ts/src/stagehand.ts Outdated
Comment thread packages/sdk-python/src/stagehand/client_models.py Outdated
Comment thread packages/server/runtime.ts Outdated
Comment thread packages/server/runtime.ts Outdated
Comment thread packages/server/runtime.ts Outdated
Comment thread packages/server/controllers/stagehandController.ts
@miguelg719
miguelg719 requested a review from a team as a code owner July 27, 2026 23:07

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 22 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread packages/server/rpcRouter.ts
Comment thread packages/server/runtime.ts Outdated
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