Gemini CLI auth login opens browser, you sign in successfully, browser says "all good!" and then the CLI just... dies. No useful error message. Just failed, reason: with nothing after it. Spent way too long thinking it was token issues, credential problems, account permissions — turns out Node.js was trying IPv6 first, IPv6 was unreachable, and the Gemini CLI doesn't bother falling back to IPv4. The fix? One sysctl command. Or one environment variable. Seriously.
Oh, and Google's own error screen helpfully tells you to check "enterprise keys" and other nonsense. Thanks Google.
This isn't just a WSL2 issue either. Any system with flaky or broken IPv6 connectivity will hit this. And that's a lot of systems.