Skip to content

fix(webview): open Google authorization once - #246

Merged
zo-sol merged 1 commit into
IQCoreTeam:mainfrom
NubsCarson:codex/google-login-single-open-20260917
Sep 20, 2026
Merged

zo-sol merged 1 commit into
IQCoreTeam:mainfrom
NubsCarson:codex/google-login-single-open-20260917

Conversation

@NubsCarson

Copy link
Copy Markdown
Contributor

Google sign-in could open twice and navigate the AgentNet tab away: window.open(..., 'noopener,noreferrer') returns null even when the new tab opens, so the fallback also navigated the original tab. Separately, remounting Settings could reopen the same pending authorization URL.

This keeps one auto-open handler at the App level and opens external links once, preserving opener isolation, no referrer, and the blocked-popup fallback. No OAuth backend or permission changes.

Validation: reproduced the duplicate navigation in Chrome; verified one destination tab with the original app intact, null opener and empty referrer after the fix. The React regression fails on main (three opens) and passes here. All 11 webview tests, the webview build, core typecheck and 547 core tests passed (5 skipped; one initial existing async wait timed out under parallel load). Webview tests/build are added to CI. No fresh Google token exchange was performed.

Reproduction and evidence.

@zo-sol
zo-sol merged commit 79c76e4 into IQCoreTeam:main Sep 20, 2026
1 check passed
@NubsCarson
NubsCarson deleted the codex/google-login-single-open-20260917 branch December 2, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants