Proposal: route Antigravity OAuth URL through a sign-in-only loopback sink on Windows #9690
PabloValencia14
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Related bug: #9624. This revisits the mechanism from closed PR #9550 and credits its original implementation, but corrects the diagnosis.
Reproduction
On Windows 11 with nightly
0.0.39-nightly.20260904.1276and the packaged Antigravity ACP:__T3_ANTIGRAVITY_AUTH_URL__as expected.webbrowserpreserves all four parsed arguments and returnsTrue, but the marker does not reach the parent stderr pipe.authenticatethen waits until cancellation/timeout and the desktop never receives anopenExternalrequest.127.0.0.1delivers it successfully through the same Python launch path.This indicates that the remaining problem after #9425 is not late subscription replay, nor the default browser, nor Python treating the whole
BROWSERvalue as one executable. The fragile boundary is the browser grandchild's stderr propagation on Windows.Proposed scoped fix
Adapt the implementation from #9550:
onAuthorizationUrl, setBROWSERto the T3 runtime and preload a small CommonJS file throughNODE_OPTIONS.127.0.0.1on an ephemeral port with a random path token.receiveAuthorizationUrlpath, which validates the Google origin, callback URI, and state before publishing it.I have a current-main branch with the original #9550 authorship preserved, comments corrected to match the reproduction,
git diff --checkclean, and an isolated end-to-end probe showing current path = no marker, loopback path = URL received. The repository dependency install is incomplete on this machine, so I have not claimed a fresh focused-suite run.Would maintainers accept a fresh PR using this approach, or prefer a different transport for the authorization URL?
All reactions