Repository navigation
Enable browser size input in browse CLI - #3482
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: da8e0fc 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 |
Contributor
There was a problem hiding this comment.
No issues found across 5 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant User as CLI User
participant CLI as browse CLI
participant Parser as Oclif Flag Parser
participant Builder as buildSessionCreateBody()
participant API as Browse Cloud API
Note over User,API: Browse Cloud Sessions Create Flow
User->>CLI: browse cloud sessions create [flags]
CLI->>Parser: Parse flags (--size, --body, etc.)
alt --size provided (regular|large|xlarge)
Parser-->>CLI: Validated size value
CLI->>Builder: Pass size flag
Builder->>Builder: Set browserSettings.size
else --size omitted
Parser-->>CLI: No size flag
CLI->>Builder: No size flag
opt --body contains browserSettings.size
Builder->>Builder: Preserve size from --body
end
end
alt Invalid --size value
Parser-->>CLI: Validation error
CLI-->>User: Error: invalid choice
else Valid input
Builder-->>CLI: Session create body
CLI->>API: POST /v1/sessions
API-->>CLI: Session created (sess_xxx)
CLI-->>User: Success output
end
Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack
View guided diff | Turn on auto-fix | Re-trigger cubic
shrey150
approved these changes
Nov 18, 2026
This was referenced Nov 18, 2026
shrey150
pushed a commit
that referenced
this pull request
Nov 19, 2026
Release Browse independently of the Stagehand SDKs. Merging this PR publishes the CLI from the merged commit. ## 0.12.0 ### Minor Changes - [#3482](#3482) [`8901460`](8901460) Thanks [@suyashguptasg](https://github.com/suyashguptasg)! - Add `--size regular|large|xlarge` to `browse cloud sessions create` to select the browser size. - [#3499](#3499) [`a5a19ea`](a5a19ea) Thanks [@shrey150](https://github.com/shrey150)! - Remove deprecated `browse cloud contexts update`; context uploads are no longer supported. ### Patch Changes - [#3450](#3450) [`c118e9c`](c118e9c) Thanks [@shrey150](https://github.com/shrey150)! - Add `browse discord` command to open the Stagehand Discord in your system browser - [#3473](#3473) [`0f9a64c`](0f9a64c) Thanks [@github-actions](https://github.com/apps/github-actions)! - fix the CLI printing replacement characters when a daemon reply splits a multi-byte character across socket chunks - [#3451](#3451) [`902e91b`](902e91b) Thanks [@shrey150](https://github.com/shrey150)! - Add Discord and GitHub links to root help footer and support hints on unexpected errors - [#3481](#3481) [`ebf15c8`](ebf15c8) Thanks [@shrey150](https://github.com/shrey150)! - Add search filtering options and migrate cloud commands to the Browserbase SDK. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
why
what changed
test plan