Skip to content

Version Packages#1598

Open
github-actions[bot] wants to merge 1 commit intomainfrom
changeset-release/main
Open

Version Packages#1598
github-actions[bot] wants to merge 1 commit intomainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jan 22, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@browserbasehq/stagehand@3.1.0

Minor Changes

Patch Changes

  • #1644 1e1c9c1 Thanks @monadoid! - Fix unhandled CDP detaches by returning the original sendCDP promise

  • #1647 ffd4b33 Thanks @tkattkat! - Fix [Agent] - Address bug causing issues with continuing a conversation from past messages in dom mode

  • #1614 677bff5 Thanks @miguelg719! - Enforce - regex validation on act/observe for elementId

  • #1664 b27c04d Thanks @seanmcguire12! - fixes issue with context.addInitScript() where scripts were not being applied to out of process iframes (OOPIFs), and popup pages with same process iframes (SPIFs)

  • #1624 0e8d569 Thanks @seanmcguire12! - fix issue where screenshot masks were not being applied to dialog elements

  • #1596 ff0f979 Thanks @tkattkat! - Update usage/metrics handling in agent

  • #1631 2d89d2b Thanks @miguelg719! - Add right and middle click support to act and observe

  • #1613 aa4d981 Thanks @miguelg719! - SupportedUnderstudyAction Enum validation for 'method' on act/observe inference

  • #1652 18b1e3b Thanks @miguelg719! - Add support for gemini 3 flash and pro in hybrid/cua agent

  • #1633 22e371a Thanks @tkattkat! - Add warning when incorrect models are used with agents hybrid mode

  • #1609 3f9ca4d Thanks @miguelg719! - Add SupportedUnderstudyActions to observe system prompt

  • #1642 3673369 Thanks @seanmcguire12! - fix issue where scripts added via context.addInitScripts() were not being injected into new pages that were opened via popups (eg, clicking a link that opens a new page) and/or calling context.newPage(url)

  • #1636 ea33052 Thanks @miguelg719! - Include executionModel on the AgentConfigSchema

  • #1646 f09b184 Thanks @miguelg719! - Add user-agent to CDP connections

  • #1637 a7d29de Thanks @miguelg719! - Improve error and warning message for legacy model format

  • #1662 44416da Thanks @seanmcguire12! - fix issue where locator.fill() was not working on elements that require direct value setting

  • #1612 bdd8b4e Thanks @seanmcguire12! - fix issue where screenshot mask was only being applied to the first element that the locator resolved to. masks now apply to all matching elements.

@browserbasehq/stagehand-server@3.6.0

Minor Changes

Patch Changes

@browserbasehq/stagehand-evals@1.1.8

Patch Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch from 8f3c100 to 801d533 Compare January 22, 2026 22:28
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 22, 2026

Greptile Summary

Automated version release PR generated by Changesets for publishing version 3.0.9 of @browserbasehq/stagehand to npm. The release includes a bug fix for agent token usage metrics that were underreported in multi-step executions.

Changes:

  • Core package (@browserbasehq/stagehand) bumped from 3.0.8 to 3.0.9 (patch release)
  • Dependent packages (stagehand-evals and stagehand-server) received patch version bumps due to workspace dependency updates
  • Changeset file removed after processing
  • All CHANGELOG files updated with proper references to PR improve agent usage metrics #1596

Underlying Fix:
The release packages a fix in v3AgentHandler.ts that switches from using usage (last step only) to totalUsage (cumulative across all steps) when calculating token metrics, ensuring accurate reporting of input tokens, output tokens, reasoning tokens, and cached input tokens for multi-step agent executions.

Confidence Score: 5/5

  • This PR is safe to merge - automated version release with correct semver bumps
  • All version bumps follow semantic versioning correctly (patch releases), changelogs are properly formatted with accurate references, dependent packages are updated appropriately, and the changeset file is correctly removed. This is a standard Changesets automation output.
  • No files require special attention

Important Files Changed

Filename Overview
packages/core/CHANGELOG.md Added version 3.0.9 entry with correct PR reference and description
packages/core/package.json Version bumped from 3.0.8 to 3.0.9 as expected for patch release
packages/evals/package.json Version bumped from 1.1.7 to 1.1.8 due to dependency update
packages/server/package.json Version bumped from 3.5.0 to 3.5.1 due to dependency update

Sequence Diagram

sequenceDiagram
    participant GHA as GitHub Actions
    participant CS as Changesets
    participant Core as @browserbasehq/stagehand
    participant Evals as @browserbasehq/stagehand-evals
    participant Server as @browserbasehq/stagehand-server
    
    Note over GHA,CS: PR #1596 merged with changeset
    GHA->>CS: Trigger changesets/action
    CS->>Core: Read .changeset/five-frogs-cry.md
    CS->>Core: Bump version 3.0.8 → 3.0.9
    CS->>Core: Update CHANGELOG.md
    CS->>Core: Delete changeset file
    
    Note over CS,Evals: Handle dependent packages
    CS->>Evals: Detect workspace dependency
    CS->>Evals: Bump version 1.1.7 → 1.1.8
    CS->>Evals: Update CHANGELOG.md
    
    CS->>Server: Detect workspace dependency
    CS->>Server: Bump version 3.5.0 → 3.5.1
    CS->>Server: Update CHANGELOG.md
    
    CS->>GHA: Create Version Packages PR
    Note over GHA: Ready to publish to npm
Loading

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.
Architecture diagram
sequenceDiagram
    participant Dev as "Maintainer"
    participant GH as "GitHub"
    participant CI as "CI/CD (Changesets)"
    participant NPM as "NPM Registry"

    Note over Dev,NPM: Release Automation (Triggered by merging this PR)

    Dev->>GH: Merge "Version Packages" PR
    GH->>CI: Trigger Release Workflow

    Note over CI: Detected version bumps in package.json

    CI->>NPM: NEW: publish @browserbasehq/stagehand@3.0.9
    NPM-->>CI: 200 OK

    par Update Dependent Packages
        CI->>NPM: NEW: publish @browserbasehq/stagehand-evals@1.1.8
        CI->>NPM: NEW: publish @browserbasehq/stagehand-server@3.5.1
    end

    NPM-->>CI: 200 OK

    CI-->>GH: Create Git Tags & Release Notes

    Note over CI,GH: Artifacts available for consumers
Loading

@github-actions github-actions bot force-pushed the changeset-release/main branch 22 times, most recently from b779e88 to eddfd5f Compare January 29, 2026 21:27
@github-actions github-actions bot force-pushed the changeset-release/main branch 5 times, most recently from db8ea4e to 198c2ab Compare February 2, 2026 23:54
@github-actions github-actions bot force-pushed the changeset-release/main branch 9 times, most recently from 987c00c to 8987fda Compare February 6, 2026 02:45
@github-actions github-actions bot force-pushed the changeset-release/main branch from 8987fda to a7eca8a Compare February 6, 2026 20:53
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.

0 participants