fix(antigravity): align User-Agent token order and auth_method with 2.5.5 decompilation - #1891
Merged
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Align token order and components in
antigravityUserAgentwith the decompiled Antigravity 2.5.5 Go Language Server (codeassistclient.(*CodeAssistClient).setHeaders@0x1018fbe00):os_type=%s→arch=%s→aidev_client→auth_method=%s(joined with;).antigravity/ide/%s (%s)using subclient (ide) and version (2.5.5).antigravity/ide/2.5.5 (os_type=windows; arch=amd64; aidev_client; auth_method=oauth).antigravityUserAgent()directly forANTIGRAVITY_REQUEST_UAto ensure shared trimmed override handling.authMethodonantigravityUserAgent(version, authMethod = "oauth").Evidence & Verification
language_server_macos_arm126MB Go1.26.5 (setHeaders@0x1018fbe00).daily-cloudcode-pa.googleapis.com):fetchAvailableModels: Returns all 28 models includinggemini-3.7-flash-{low,medium,high}(200 OK).generateContent(gemini-3.7-flash-low): Returns200 OKwith streaming completion.bun test tests/client-fingerprint.test.ts tests/google-antigravity-wire.test.ts tests/google-antigravity-oauth.test.ts(75 passed, 0 failed)bun run typecheck(0 errors)Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Summary by CodeRabbit