Merged
Conversation
Contributor
Greptile SummaryAutomated version bump to 2.5.8 for the main
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: fb39851 |
Contributor
There was a problem hiding this comment.
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 App as Application (Eval/Example)
participant SH as Stagehand Core (v2.5.8)
participant Browser as Browser Engine (Playwright)
participant Target as Popup / New Tab
Note over App,Target: Runtime flow for handling rapid popup lifecycle
App->>SH: act() or extract()
SH->>Browser: Dispatch interaction
Browser-->>Target: Trigger popup creation
opt Rapid Lifecycle Race Condition
Target-->>Browser: Target closed/destroyed
end
SH->>Target: Attempt to wrap/access target
alt Target Valid
Target-->>SH: Success
SH->>App: Interaction complete
else CHANGED: Target Closed Error
Target-->>SH: "Target closed" exception
SH->>SH: CHANGED: Catch and handle error gracefully
SH-->>App: Return stable state/failure without crash
end
Note over App,SH: @browserbasehq/stagehand-evals and examples<br/>now consume these updated error handlers.
seanmcguire12
approved these changes
Feb 19, 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.
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 v2, this PR will be updated.
Releases
@browserbasehq/stagehand@2.5.8
Patch Changes
df76207Thanks @seanmcguire12! - handle target closed errors on rapidly opening/closing popups@browserbasehq/stagehand-evals@1.1.8
Patch Changes
df76207]:@browserbasehq/stagehand-examples@1.0.17
Patch Changes
df76207]:Summary by cubic
Publish Stagehand 2.5.8 with a fix for “target closed” errors when popups are opened and closed quickly, improving stability. Updated evals (1.1.8) and examples (1.0.17) to depend on this patch.
Written for commit fb39851. Summary will update on new commits. Review in cubic