#5064: fix(auth): update deprecated User-Agent headers
extensions: google-antigravity-auth
Cluster:
Security Enhancements and Fixes
Resolves the critical error: "This version of Antigravity is no longer supported."
Updates the client identifiers (User-Agent and X-Goog-Api-Client) to match modern VS Code extensions, bypassing the server-side block on deprecated clients.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the HTTP client-identifying headers used by the Google Antigravity auth extension when calling the `loadCodeAssist` endpoint, changing `User-Agent` and `X-Goog-Api-Client` to values that match modern VS Code extensions. The intent is to avoid a server-side block applied to deprecated clients that was surfacing as “This version of Antigravity is no longer supported.”
Change is localized to `extensions/google-antigravity-auth/index.ts` in the `fetchProjectId` request headers; the rest of the OAuth flow and token exchange logic remains unchanged.
<h3>Confidence Score: 4/5</h3>
- This PR is likely safe to merge; it’s a small, isolated header change with low blast radius.
- The diff only adjusts two request headers in one function (`fetchProjectId`) and doesn’t alter control flow, token handling, or persistence. Main remaining risk is functional (whether these particular header values are correct/accepted by Google’s backend over time) rather than code correctness.
- extensions/google-antigravity-auth/index.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
**Context used:**
- Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
Most Similar PRs
#5210: Fix Antigravity server side checks and returning Version error
by Ivorisnoob · 2026-01-31
86.6%
#2535: fix(google-antigravity): use 127.0.0.1 instead of localhost for OAu...
by brian033 · 2026-01-27
82.2%
#4445: fix: resolve Antigravity "unsupported version" and tool_use schema ...
by harry2690 · 2026-01-30
81.3%
#2657: fix: use TLS 1.2 for gemini-cli and google-antigravity OAuth reques...
by PrentissLiu · 2026-01-27
80.5%
#7781: fix: resolve Google Gemini CLI auth credential extraction #4585
by ManojPanda3 · 2026-02-03
77.8%
#16684: fix:(antigravity): align Antigravity OAuth project discovery header...
by vincentkoc · 2026-02-15
77.0%
#8175: fix: suppress raw API errors for non-owners
by Rakshi2609 · 2026-02-03
75.3%
#11048: fix: address repository issues (env, author, CI comments, security ...
by cavula · 2026-02-07
75.2%
#19787: feat: Antigravity Fork - Token Economy, Mem0, sqlite-vec, Auto-Arch...
by msrovani · 2026-02-18
74.4%
#5027: fix(auth): use correct OAuth credentials for google-gemini-cli refresh
by shayan919293 · 2026-01-30
74.0%