feat(cli): port the browser runtime to V4 - #2525
Closed
shrey150 wants to merge 12 commits into
Closed
Conversation
🦋 Changeset detectedLatest commit: feeadf7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
shrey150
force-pushed
the
v4-spike-cli-core-runtime
branch
2 times, most recently
from
August 6, 2026 08:30
ed23413 to
92e1da9
Compare
shrey150
force-pushed
the
v4-spike-cli-core-runtime
branch
from
August 6, 2026 08:51
92e1da9 to
b3fe65f
Compare
shrey150
force-pushed
the
v4-spike-cli-core-runtime
branch
from
August 6, 2026 17:31
e5269c7 to
1fd8c7b
Compare
shrey150
force-pushed
the
v4-spike-cli-core-runtime
branch
from
August 7, 2026 18:37
1fd8c7b to
cf8c29f
Compare
…ntime # Conflicts: # packages/cli/tests/driver-foundation.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stagehand.createsessionIdto restore session, dashboard, and best-effort live-view outputRefreshed on 2026-08-10 against the current parent and
v4-spikecommitd7556e9a.Contract / parity status
browse@0.9.6--return-xpathon coordinate commandssessionId; the CLI returns the stable dashboard URL and best-effort live-view URL@browserbasehq/stagehand@4.0.0is published; a clean packed-CLI install resolvesworkspace:*to 4.0.0. The child deterministic-action PR intentionally schedules the next Stagehand patch through its changesetThis means command-surface parity is complete, but runtime feature parity is not yet complete in the three capability areas above.
E2E Test Matrix
pnpm buildpassed 6/6 tasks;pnpm checkpassed 11/11 tasks with 0 errors; the fullpnpm testgraph exited 0, including 17/17 protocol browser tests and 15/15 local SDK browser testsv4-spiked7556e9aacross build, static checks, unit tests, and real-browser suites.example.com, produced a snapshot, clicked through to IANA, filled an injected input, and read backpublished-v4-ok{ value: "hello-v4-final", color: "green", file: "package.json", clicked: "yes", title: "CLI V4" }https://example.com, readExample Domain, created/listed/switched/closed a second tab by stable target ID{ "clicked": true }--return-xpatheach exited 1 with the documented capability errorstopped: true; second returnedstopped: falseBROWSERBASE_API_KEYis available in this environment; session identity is covered by a focused launch/debug regression testIncludes a
browsepatch changeset for the V4 runtime migration.Final release validation (2026-08-10)
At the cumulative stack tip:
browsechangesetsbrowse0.9.7, Stagehand 4.0.1, extension 1.0.1, and Go 4.0.1workspace:*to exact Stagehand 4.0.1