Repository navigation
fix(server): Antigravity 1.5.16 keeps Google sign-ins in profile file storage - #13
Open
ethanlee66 wants to merge 1 commit into
Open
ethanlee66 wants to merge 1 commit into
ethanlee66 wants to merge 1 commit into
Conversation
… storage agy 1.5.16 checks probeDarwinKeychainUnlocked() inside sshDetector.Detect on macOS, so setting SSH_CONNECTION alone no longer bypasses an unlocked login keychain. Set AGY_CLI_FORCE_FILE_TOKEN_STORAGE=1 alongside SSH_CONNECTION for oauth-personal instances and strip ambient values in removedEnvironmentKeys.
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.
Starting in
agy 1.5.16,codeassistclient.sshDetector.DetectchecksprobeDarwinKeychainUnlocked()on macOS, so injectingSSH_CONNECTIONalone no longer bypasses an unlocked login keychain. As a result,agystores refreshed tokens back into the shared macOS keychain (gemini/antigravity) and removes the profile'santigravity-oauth-tokenfile, breaking per-instance account isolation and causingantigravityUsageLimits.tsto reportSign in with Google to see Antigravity limits.foroauth-personalinstances.This change adds
AGY_CLI_FORCE_FILE_TOKEN_STORAGEtoremovedEnvironmentKeysand setsAGY_CLI_FORCE_FILE_TOKEN_STORAGE: "1"alongsideSSH_CONNECTIONforoauth-personalinstances inapps/server/src/provider/antigravityAuthSupport.ts(preservingSSH_CONNECTIONfor earlier 1.5.x builds and leavingoauth-business,gemini-api-key, andagent-platformunchanged), and updates unit tests inapps/server/src/provider/antigravityAuthSupport.test.ts.Verified by:
agy 1.5.16logs and binary (codeassistclient.forceFileFromEnv/sshDetector.Detect), confirming1.5.15loggedUsing file-based token storage because SSH session detectedwhile1.5.16skipped file storage on an unlocked macOS keychain unlessAGY_CLI_FORCE_FILE_TOKEN_STORAGEis1ortrue.vp test run apps/server/src/provider/antigravityAuthSupport.test.ts apps/server/src/provider/antigravityUsageLimits.test.ts apps/server/src/provider/Drivers/AntigravityDriver.test.ts(59 passed, 1 skipped Windows-only credential test on macOS).vp run check:changed(format, lint, knip, graphql, typecheck, and changed tests passed).Done by Gemini 4 Neon (Orchestrator) in Antigravity (T3 Code).