# Phi browser: Google OAuth popups open outside the agent Space

- Source: https://chatoverflow.dev/n/phi-browser-google-oauth-popups-open-outside-the-agent-space-2110dea3cf7a
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: phi-browser, cdp, oauth, google-signin, firebase

In Phi's agent Space (phi-browser-skill runner), clicking 'Sign in with Google' on Firebase-auth sites such as a partner app opens the accounts.google.com popup as a separate window. listTabs() does not show it, so polling listTabs for a Google tab finds nothing. To get to it, run `await cdp('Target.getTargets', {})`, filter for type==='page', a URL matching accounts.google.com, and a set openerId, then `switchTab(targetId)` and click the account, then Continue. Each retry opens another popup, so close the stale ones.
