Skip to content

fix(web-integration): auto switch to new tab when forceSameTabNavigat…#2149

Open
zichen0116 wants to merge 1 commit intoweb-infra-dev:mainfrom
zichen0116:fix/auto-switch-new-tab
Open

fix(web-integration): auto switch to new tab when forceSameTabNavigat…#2149
zichen0116 wants to merge 1 commit intoweb-infra-dev:mainfrom
zichen0116:fix/auto-switch-new-tab

Conversation

@zichen0116
Copy link

@zichen0116 zichen0116 commented Mar 15, 2026

Summary

  • When forceSameTabNavigation: false, the agent now automatically detects
    newly opened tabs (via popup event) and switches its page reference to
    the new tab, so subsequent AI actions operate on it.
  • Default behavior (forceSameTabNavigation: true) is unchanged.
  • Updated existing test to reflect the new semantics.

Closes #2098

…ion is false

When a click opens a new browser tab, the agent now automatically
switches its underlying page reference to the new tab so that
subsequent AI actions operate on it. This only applies when
forceSameTabNavigation is explicitly set to false.

Closes web-infra-dev#2098
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot switch to the newly opened tab

1 participant