Repository navigation
Conversation
added 7 commits
February 17, 2026 10:57
- Update client metadata (ideType, platform, pluginType) to use numeric enums matching binary specs - Add runtime platform detection to accurately report OS and architecture - Add 'mode: 1' parameter to loadCodeAssist and onboardUser API calls - Generate dynamic User-Agent based on system runtime information
- Update session ID format to `UUID + Date.now().toString()` to align with binary specs - Introduce sessionManager to handle per-connection/account session persistence - Ensure session ID stability during the process lifetime to improve prompt caching - Integrate session derivation into both Antigravity executor and translator
- Introduce `ANTIGRAVITY_HEADERS` constant with specific client version and gRPC metadata - Update `AntigravityExecutor` to include standard client headers - Inject `X-Machine-Session-Id` header derived from the request session ID - Remove custom `X-9Router-Source` header to better mimic official client behavior - Reorder execution logic to extract session ID from transformed body before building headers
- Add `mode: 1` to `loadCodeAssist`, `onboardUser`, and usage quota requests to match binary protocol - Replace hardcoded metadata with centralized `getOAuthClientMetadata()` and `CLIENT_METADATA` in Gemini and Antigravity services - Update Antigravity User-Agent to use dynamic platform-specific string via `getPlatformUserAgent()` (cherry picked from commit 1805188)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Context
This draft PR mirrors upstream branch 'upstream-prs/pr-141' into 'master' for review, provenance, and later decision-making only.
It must not be merged wholesale. If we adopt anything from it, the intended path is commit-level intake only.
Upstream Source
Current Intake Recommendation
Selected Commits For Any Future Intake
Skipped / Excluded Scope
Acceptance Gates
Verification / Validation Checklist
masteralready covers the useful anti-ban behavior.Review Focus
masterNotes