[STG-1450] Fix Session init failing when no pages are open, falls back to opening about:blank#1749
Merged
[STG-1450] Fix Session init failing when no pages are open, falls back to opening about:blank#1749
Conversation
🦋 Changeset detectedLatest commit: 45ed6dc The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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
Greptile SummaryFixed session initialization failures by adding a fallback that creates an
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 254ae6e |
c75ce07 to
f71b43b
Compare
f71b43b to
8950c76
Compare
seanmcguire12
approved these changes
Feb 25, 2026
This was referenced Feb 25, 2026
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
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
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
CI
Written for commit 45ed6dc. Summary will update on new commits. Review in cubic
Mintlify
0 threads from 0 users in Mintlify