Repository navigation
fix(desktop-browser): wait for a new tab's first page before calling it blank - #10382
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Medium impact] The change affects page tools in the desktop browser-agent workflow. Fix the snapshot failure and cancellation gap before merging. FindingsSummaryThis PR makes page tools wait when a new tab is blank but still loading.
Reviews (1) · Last reviewed commit: "fix(desktop-browser): wait for a new tab..." · Reviewed by Greptile |
This branch was previously deployed
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.
Summary
browser_snapshot,browser_click, …) hit the blank-tab guard inexecInPageand failed with "The active tab is blank. Call browser_navigate…", which is wrong: the page is loading, and navigating would throw it awaybrowser-focus.spec.tsdesktop-e2e failure ("a popup the agent opens hands focus back to the page the user is in"): its snapshot targets the popup the previous step's agent click opened, and on a slow runner that popup had not committed yetType of Change
Testing
driver.test.tscase: a snapshot on a tab loading its first page waits and then evaluates; fails on the pre-fix driver (blank-tab error), passes with the fix. The existing blank-and-idle cases still fail immediatelyapps/desktop/src/main/browser-agentsuite (560 tests), desktoptype-check, biomebrowser-focus.spec.tsin CIChecklist
test-auditauthoring gate)