Repository navigation
Conversation
This branch has not been deployed
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.
ELI5
Clicking Change account for Antigravity Chat can silently keep using the existing Google login. This change makes the explicit sign-in action request a fresh login and preserves the previous account if the replacement fails or is cancelled.
What Changed
acp_token.jsonbefore starting authentication. Keep its backup until authentication, session initialization, and server shutdown succeed.Why
The current flow calls ACP
authenticate('oauth-personal')while the server can still read its valid cached Chat token. That allows authentication to complete without opening the browser. The explicit account-change action needs to remove that shortcut while preserving a rollback path.Linked Issue
Fixes #37437
Visual Proof
Pending. The original behavior was reported on macOS with Orca 1.4.246. No rendered before/after capture or real Google OAuth validation of this patch is claimed; this PR is a draft until that interaction is verified. Layout and labels are unchanged.
Testing
pnpm test src/main/antigravity src/main/acp/acp-launch-gate.test.ts --maxWorkers=2: 207 passed, 9 skipped across 20 files (two platform-specific files skipped).signedIninstead ofwaiting. It passes with this patch.pnpm check:changed --maxWorkers=2 --timeout=3: 21/22 checks passed, including typechecking, lint/format, changed-code quality and all applicable ratchets. The broad related-unit-test selection exceeded the explicit three-minute per-step limit; its result is incomplete. The scoped provider suite above passed separately.Risk
Level: Medium. This changes credential-file handling for explicit Antigravity Chat sign-in. A filesystem error can prevent switching; the old token backup is retained for recovery. Token restoration waits for the writer to exit, and the existing gate stops starts/live chats before a switch. All file operations run on the execution host using its resolved
GEMINI_HOME; no new wire fields or capabilities are introduced.A revert restores the old behavior. If reverting during an interrupted switch, stop the Chat writer first and restore
acp_token.json.orca-sign-in-backuptoacp_token.jsonin that host's Chat account directory. No account secrets are included in this PR.AI Disclosure
Prepared with OpenAI Codex (GPT-6), including implementation, automated tests, and this description. Real-provider validation remains explicitly pending.
Review
Agent skill upstream boundary
Checklist