Does this issue occur when all extensions are disabled?: No (Requires agent / browser integration extensions)
- VS Code Version: [Insert version from Help > About]
- OS Version: [Insert OS version, e.g., macOS / Windows / Linux]
Issue Description
When using an agent with the integrated browser (or Simple Browser webview), pop-up windows (such as OAuth logins, modal dialogs, or window.open tabs) are not automatically shared with or forwarded to the agent's context. Because the agent cannot observe the contents or state of the spawned pop-up, it fails to complete workflows that require interacting with pop-ups.
Steps to Reproduce:
- Launch an agent session in VS Code that interacts with the integrated browser.
- Navigate to any page or run a task that triggers a pop-up window or modal (e.g., third-party OAuth authentication,
window.open(), or JavaScript alert/prompt). - Observe that the pop-up opens visually in the integrated browser UI.
- Check the agent's context/tool calls: the agent does not receive the new window's URL, DOM snapshot, or state and remains blocked or unaware of the pop-up.
Expected Behavior
Spawned pop-up windows and modal dialogs from the integrated browser should automatically pipe their state/DOM context back to the agent session so it can continue execution.
Actual Behavior
The pop-up context remains detached, leaving the agent blind to the new window and unable to proceed.