Skip to content

Enable browser size input in browse CLI - #3482

Merged
shrey150 merged 1 commit into
mainfrom
sugupta/vsb-cli-updates
Nov 18, 2026
Merged

shrey150 merged 1 commit into
mainfrom
sugupta/vsb-cli-updates

Conversation

@suyashguptasg

Copy link
Copy Markdown
Contributor

why

  • Add support for passing in size to session creation

what changed

  • Add --size regular|large|xlarge to browse cloud sessions create.
  • Explicit --size overrides the size in --body. When omitted, existing behavior stays the same.
  • Add help text, a README example, and a release changeset.

test plan

  • Verified all three sizes, omitted size, --body handling, and invalid-size rejection against a local fake API.
  • All 11 focused tests pass, including CLI help coverage.
  • Compilation, lint, and formatting pass.

@changeset-bot

changeset-bot Bot commented Nov 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: da8e0fc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
browse Minor

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

@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.

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
Loading

Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

View guided diff | Turn on auto-fix | Re-trigger cubic

@shrey150
shrey150 merged commit 8901460 into main Nov 18, 2026
30 checks passed
@shrey150
shrey150 deleted the sugupta/vsb-cli-updates branch November 18, 2026 03:25
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>
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.

2 participants