[pull] main from browserbase:main#28
Merged
pull[bot] merged 3 commits intoedisplay:mainfrom Feb 25, 2026
Merged
Conversation
# why - adds documentation for the following new functions: - `context.addCookies()` - `context.clearCookies()` - `context.cookies()` ### note: - hold off on merging until after release <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add V3 docs for cookie management in context: cookies(), addCookies(), and clearCookies, with examples and type definitions to help users manage auth and state. Connects to Linear STG-1409; merge after the release that includes these APIs. <sup>Written for commit 4ad34e1. Summary will update on new commits. <a href="https://cubic.dev/pr/browserbase/stagehand/pull/1748">Review in cubic</a></sup> <!-- End of auto-generated description by cubic. -->
# why - adds documentation for the new `keepAlive` param ### note: - hold off on merging until after release <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add keepAlive docs to Stagehand, detailing behavior in Browserbase and Local, close() semantics, defaults/overrides, and how to reconnect via browserbaseSessionID. Addresses Linear STG-1380. <sup>Written for commit 6eaa9cd. Summary will update on new commits. <a href="https://cubic.dev/pr/browserbase/stagehand/pull/1747">Review in cubic</a></sup> <!-- End of auto-generated description by cubic. -->
…k to opening about:blank (#1749) # why Stagehand API failures were caused on all routes `/act`, `/observe`, etc. when session init failed because a page was closed. This adds a fallback to open about:blank so at least the session remains usable instead of just crashing on init. # what changed # test plan <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes session init when connecting to a browser with zero pages by auto-creating an about:blank tab. Keeps Stagehand routes working after the last page closes and surfaces lint failures via a dedicated cancellation job. Addresses STG-1450. - **Bug Fixes** - Replace waitForFirstTopLevelPage with ensureFirstTopLevelPage: check for an existing page, wait with timeout, then create about:blank if none. - Simplify errors to a TimeoutError with clearer context; improve logging and add an integration test for zero-page init. - **CI** - Run cancellation in a separate job only when lint fails, so failures are visible instead of marked skipped. <sup>Written for commit 45ed6dc. Summary will update on new commits. <a href="https://cubic.dev/pr/browserbase/stagehand/pull/1749">Review in cubic</a></sup> <!-- End of auto-generated description by cubic. --> <!-- mintlify-editor-comments:start --> Mintlify --- 0 threads from 0 users in Mintlify - No unresolved comments <!-- mintlify-editor-comments:end --> <!-- mintlify-comment--> <a href="https://dashboard.mintlify.com/browserbase/stagehand/editor/session-init-fixes?source=pr_comment" target="_blank" rel="noopener noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-light.svg"><img src="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-light.svg" alt="Open in Mintlify Editor"></picture></a> <!-- /mintlify-comment -->
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )