Antigravity setup runs authenticate and then a session/new probe in the same flow. When that probe fails, safeAuthFailure has no case for it and falls through to "Google sign-in failed. Start sign-in again." — even though Google succeeded and acp_token.json was already written. Acting on that banner means signing out, which deletes the token that was working, so the user loops forever.
An AcpRequestError already carries the method it failed on, so a session/* failure can be recognised as post-authentication and reported as such. initialize is deliberately left alone: it runs before authenticate, so the existing wording is still correct there.
- Before:
Google sign-in failed. Start sign-in again.
- After:
Signed in, but Antigravity could not start a session. Retry without signing out.
On the underlying failure from #9655: it is not the throwaway setup cwd, as that issue guessed. The agent's own log shows session/new dying in the harness handshake with Failed to parse initial message: proto: (line 3:5): unknown field "cascadeid". agy_acp_server 1.1.1 serializes HarnessConfig.cascade_id as lowercase cascadeid, and the localharness_external binary shipped in the same archive only accepts cascadeId. Probing that harness directly confirms it: cascadeId parses, cascadeid produces exactly the reported error, and Go's protojson reports unknown field names verbatim. cascade_id comes from a session id the agent generates itself, so nothing T3 sends reaches it, and the ACP registry still lists 1.1.1 as current — there is no newer build to pin. That part is not fixable here; this PR only stops T3 from misreporting it as a sign-in failure and pushing users into a destructive sign-out.
Fixes #9655
🤖 Generated with Claude Code
Note
Fix safeAuthFailure to report session/* ACP errors as Antigravity session failures, not Google sign-in failures#
- Adds handling in
safeAuthFailure (AntigravityAuth.ts) for ACP request errors whose method starts with session/. When no earlier case matches, the formatter now reports sign-in succeeded but Antigravity could not start a session, advising retry without signing out.
- Updates the auth test harness (AntigravityAuth.test.ts) so the
discovered deferred can fail with AcpErrors.AcpError, and adds a test verifying the corrected failure classification after a session/new error.
Macroscope summarized 9bd867a.
Approvability#
Verdict: Not approved
Macroscope's review found this PR not approvable — The production change alters user-facing handling of post-authentication ACP failures in the Google credential flow and advises users not to sign out, while the accompanying test covers the targeted
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).session/newcase. Because this touches sensitive authentication behavior, the change warrants human review despite its narrow scope.