Release @browserbasehq/browse-cli@0.4.0#1925
Merged
Conversation
|
shrey150
approved these changes
Mar 30, 2026
Contributor
There was a problem hiding this comment.
No issues found across 6 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 User / Shell
participant CLI as Browse-CLI
participant Local as Local Chrome (CDP)
participant BB as Browserbase API
participant SH as Stagehand / Browser
Note over User,BB: NEW: local environment auto-discovery flow
User->>CLI: browse env local
CLI->>Local: NEW: Scan for debuggable Chrome (CDP port)
alt Local Chrome Found
CLI->>Local: NEW: Attach to existing instance
else Local Chrome Not Found (or --isolated flag)
CLI->>Local: Launch isolated browser process
end
Local-->>CLI: Browser connection established
Note over User,BB: NEW: attach to existing remote session flow
User->>CLI: browse --connect [session_id]
CLI->>BB: NEW: Request session info
BB-->>CLI: Session metadata
CLI->>SH: Initialize Stagehand with session ID
Note over User,BB: Changed session initialization flow
CLI->>SH: Create new session
SH->>BB: Create session with CHANGED: CLI metadata
BB-->>SH: session_id
Note over SH,Local: Stability Fix
SH->>Local: Active browser session
Local-->>SH: CDP Connection Closed
SH->>SH: CHANGED: Clear cached browser state
Note over SH: Prevents "awaitActivePage" errors on retry
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.
Prepare the next browse-cli release by versioning the package on
main.What this PR does:
packages/cli/package.jsonto0.4.0After this PR merges, the
Releaseworkflow onmainwill publish@browserbasehq/browse-cli@0.4.0from that exact commit usingpnpm pack+npm publish --provenance.Summary by cubic
Release
@browserbasehq/browse-cli0.4.0 with new session attach and smarter local Chrome discovery, plus stability fixes. Bumps the package version and updates the changelog; the Release workflow will publish from this commit.New Features
--connectto attach to an existing Browserbase session by ID.browse env localauto-discovers debuggable Chrome and attaches when found (falls back to isolated). Adds--isolated, positional CDP target, and--wsaccepts bare port numbers.Bug Fixes
Written for commit d744934. Summary will update on new commits. Review in cubic