refactor(cli): remove coordinate XPath return flag - #2835
Draft
shrey150 wants to merge 8 commits into
Draft
Conversation
🦋 Changeset detectedLatest commit: 4d58e50 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 |
This was referenced Aug 27, 2026
shrey150
force-pushed
the
agent/browse-v4-5-remove-xpath
branch
from
August 28, 2026 02:52
fc177d4 to
58a94c2
Compare
This was referenced Aug 28, 2026
…-remove-xpath # Conflicts: # packages/cli/tests/driver-commands.test.ts
shrey150
changed the base branch from
agent/browse-v4-4-runtime
to
agent/browse-v4-network-sidecar
August 28, 2026 23:37
…-remove-xpath # Conflicts: # packages/cli/tests/driver-commands.test.ts
This was referenced Aug 31, 2026
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
Remove Browse's obsolete
--return-xpathcoordinate-action option instead of carrying a permanently unsupported V4 compatibility flag. This is also the first stack head with the complete supported V3 CLI surface on Stagehand V4, so the Browse minor-release changeset belongs here.returnXPathin driver payloads.XPath selectors and snapshot
xpathMapare unchanged. This removes only the request to return an XPath from a raw coordinate action.Stack (#2872)
--return-xpath; supported V3 parity/release checkpointReview boundary
The diff from #2849 is intentionally small: one public-contract removal plus its release metadata. Browser lifecycle, standard commands, cursor, and network are proven independently below it. #2838 consumes this publishable parity head but no longer owns the migration changeset.
Current-head E2E matrix
The actual built CLI implementation now on final head
4d58e50223was run against a deterministic page in a real Browserbase browser:<h1>returnedReadyAda, optionb, checkbox checked, resultClicked--return-xpathabsent from click/hover/scroll/dragNonexistent flag: --return-xpathThe inherited network implementation was also rerun on this stack shape: actual V3 and V4 built CLIs each emitted 8 request/7 response artifacts with command diffs
[], matching evaluation results, and 0 normalized artifact differences. The real Browserbase two-cycle sidecar test also passed.pnpm --filter browse lint: passed.pnpm --filter browse test: 27 files / 383 tests passed.browseas a minor bump.