Skip to content

fix(antigravity): link directly to Google account verification on failed turns - #41210

Open
t3dotgg wants to merge 2 commits into
mainfrom
t3/takeover-pr-40226
Open

t3dotgg wants to merge 2 commits into
mainfrom
t3/takeover-pr-40226

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Nov 23, 2026

Copy link
Copy Markdown
Member

Unverified Google accounts on Antigravity pass OAuth sign-in and load models, then fail their first turn with a 403 VALIDATION_REQUIRED error. Google includes a validation_url in Antigravity's native error step, but T3 dropped it and only showed "Verify your account to continue.", forcing users to dig into local logs. Closes #16078.

Now T3 extracts and allowlists the Google Accounts continuation URL (https://accounts.google.com/v3/signin/continue?... or /signin/continue?...) on OrchestrationV2ProviderFailure, validates it in makeProviderFailure, and renders a Verify Google account action button on failed turn rows across desktop, web, and mobile (with translations across all 10 locales).

Takes over #40226 by @RaajYedida (preserving the original commit and adding co-author credit), rebased on main with balanced JSON body extraction (handling compact bodies and sibling google.rpc details), classic /signin/continue and control-character hardening, makeProviderFailure validation, and complete i18n coverage.

Proved with failing-before-fix unit tests in AntigravityTurnOutcome.test.ts and failure.test.ts, vp run check:changed, vp run i18n:check, and live rendering in T3 Code's web app confirming the accessible link target (_blank, noopener noreferrer, exact fixture href):

Before (8:10 PM) vs after (8:11 PM) in the thread timeline

Reviewed with sol-loop: 1 passes with GPT-6.2 Sol. Sol verdict: approved
Created with Gemini 4 Neon in Antigravity.

codex and others added 2 commits November 22, 2026 20:23
…ions

- Accept both /v3/signin/continue and /signin/continue Google verification URLs and reject control characters
- Validate verificationUrl inside makeProviderFailure
- Extract balanced JSON error objects so compact HTTP error bodies and sibling google.rpc details decode reliably
- Add Verify Google account translations across all web and mobile locales

Co-authored-by: Raaj Yedida <166455374+RaajYedida@users.noreply.github.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 9d3054a · PR result: 829528c · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Antigravity turn handling now identifies Google account verification errors and includes a validated continuation URL in the provider failure when available. Web and mobile thread error rows show an action to open that URL. Verification labels are translated in both applications.

Changes: Google account verification

Layer / File(s) Summary
Verification URL failure contract
packages/contracts/src/orchestrationV2.ts, packages/provider-core/src/server/failure.ts, packages/provider-core/src/server/failure.test.ts
The provider failure contract adds an optional validated Google sign-in continuation URL. Failure construction retains valid URLs and omits invalid or absent values. Tests cover accepted and rejected URL forms.
Antigravity verification error mapping
apps/server/src/provider/acp/AntigravityTurnOutcome.ts, apps/server/src/provider/acp/AntigravityTurnOutcome.test.ts
Turn handling scans error text for matching verification JSON and maps a match to a non-retryable permission_error with code VALIDATION_REQUIRED. Tests cover payload formats, URL cases, and errors outside a turn.
Web verification action
apps/web/src/components/chat/TimelineWorkEntryRow.tsx, apps/web/src/i18n/translations/*.json
The web error row shows a link that opens the verification URL in a new tab when present. Web translations add verification labels.
Mobile verification action
apps/mobile/src/features/threads/thread-work-log.tsx, apps/mobile/src/i18n/translations/*.json
The mobile error row shows a button that opens the verification URL when present. Mobile translations add verification labels.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant Google as Google API
  participant Outcome as AntigravityTurnOutcome
  participant Web as Web error row
  participant Mobile as Mobile error row
  Google->>Outcome: 403 verification error in turn error text
  Outcome->>Web: Failure with verificationUrl when valid
  Outcome->>Mobile: Failure with verificationUrl when valid
  Web->>Google: Open verification URL when present
  Mobile->>Google: Open verification URL when present
Loading

Suggested reviewers: juliusmarminge, shivamhwp, maria-rcks

Merge Risk: Minimal · up to 82952

Failed Antigravity turns that need Google account verification now show a guidance message and a "Verify Google account" action on web and mobile. The URL is restricted to Google Accounts sign-in continuation links. No concrete merge-blocking defect was established.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(antigravity): link directly to Google account verification on failed turns" matches the main change. The PR adds a verification URL to provider failures and renders a "Verify Google acc…
Description check Passed The description follows the template's main sections and explains the problem, the change, and verification. It links issue #16078 and notes the takeover of PR #40226. Gaps: the Scope section does not…
Linked Issues check Passed Issue #16078 accepts either of two outcomes: (a) sign-in or Refresh detects the verification state and guides the user, or (b) the first-turn 403 becomes an in-app verification action for the affected…
Out of Scope Changes check Passed Each changed file supports the verification-action objective. Contract schema (orchestrationV2.ts) adds the optional verificationUrl field and its validator. The provider-core failure builder (failure…
Full details: Title check

Explanation

The title "fix(antigravity): link directly to Google account verification on failed turns" matches the main change. The PR adds a verification URL to provider failures and renders a "Verify Google account" button on failed turn rows across desktop, web, and mobile. The title is specific, uses a conventional commit format, and names the affected provider.

Full details: Description check

Explanation

The description follows the template's main sections and explains the problem, the change, and verification. It links issue #16078 and notes the takeover of PR #40226. Gaps: the Scope section does not say why the change is a bug fix rather than a feature, given the issue asks for in-app verification and guidance. The Problem section gives no separate reproduction steps, though it describes the observed failure. The Verification section names tests and checks with observed results. The description also omits the template's required agent/model line at the end, though it does include a "Created with Gemini 4 Neon" line. The issue's requested outcome (sign-in or Refresh detection, per-instance support, no external agy session) is not fully addressed, and the description does not say so.

Resolution

Consider these updates before merge: (1) In Scope, state why this is a bug fix and not a feature, since the linked issue asks for in-app verification. (2) State which parts of issue #16078 remain open, including sign-in/Refresh detection and per-instance account support. (3) Confirm the agent and model line matches the template format.

Full details: Linked Issues check

Explanation

Issue #16078 accepts either of two outcomes: (a) sign-in or Refresh detects the verification state and guides the user, or (b) the first-turn 403 becomes an in-app verification action for the affected instance or account. The PR implements outcome (b). AntigravityTurnOutcome.ts parses JSON from the error step, matches a 403 PERMISSION_DENIED error with an ErrorInfo detail (Google Cloud Code domain, VALIDATION_REQUIRED), and returns a non-retryable permission_error with code VALIDATION_REQUIRED and the optional validation URL. The URL is carried on OrchestrationV2ProviderFailure (packages/contracts/src/orchestrationV2.ts) and checked by GoogleAccountVerificationUrl and makeProviderFailure (packages/provider-core/src/server/failure.ts). Web (TimelineWorkEntryRow.tsx) and mobile (thread-work-log.tsx) render a 'Verify Google account' action on the failed turn. Because the failure belongs to a thread on one provider instance, the action applies per instance. Tests in AntigravityTurnOutcome.test.ts and failure.test.ts cover both accepted URL forms and rejected cases (missing, untrusted host, fragment, control character, non-verification errors). Caveats: sign-in and Refresh detection is not implemented, which the issue does not require under outcome (b). The action opens the Google page in a new tab or external browser, so the verification step itself occurs outside T3 Code. The issue's first expected-behavior sentence favors in-app completion, but outcome (b) explicitly accepts an in-app action. The remaining coding requirements are met by the reviewed diff.

Full details: Out of Scope Changes check

Explanation

Each changed file supports the verification-action objective. Contract schema (orchestrationV2.ts) adds the optional verificationUrl field and its validator. The provider-core failure builder (failure.ts) and its test (failure.test.ts) validate the URL. The server extractor (AntigravityTurnOutcome.ts) and its test (AntigravityTurnOutcome.test.ts) produce the failure. Web and mobile rows render the button. The i18n files add only the 'Verify Google account' label and the related prompt across locales, which the button requires. The producer-redaction comment update in orchestrationV2.ts is a documentation change near the diagnostic-text field the PR modifies. It is minor and related. No unrelated behavior change was identified in the summary. Excluded files: none (ignored_files is empty).

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9d3054a and 829528c.

Files selected for processing: 27

  • apps/mobile/src/features/threads/thread-work-log.tsx
  • apps/mobile/src/i18n/translations/de.json
  • apps/mobile/src/i18n/translations/en.json
  • apps/mobile/src/i18n/translations/es.json
  • apps/mobile/src/i18n/translations/fr.json
  • apps/mobile/src/i18n/translations/ja.json
  • apps/mobile/src/i18n/translations/ko.json
  • apps/mobile/src/i18n/translations/pt-BR.json
  • apps/mobile/src/i18n/translations/ru.json
  • apps/mobile/src/i18n/translations/sv.json
  • apps/mobile/src/i18n/translations/zh.json
  • apps/server/src/provider/acp/AntigravityTurnOutcome.test.ts
  • apps/server/src/provider/acp/AntigravityTurnOutcome.ts
  • apps/web/src/components/chat/TimelineWorkEntryRow.tsx
  • apps/web/src/i18n/translations/de.json
  • apps/web/src/i18n/translations/en.json
  • apps/web/src/i18n/translations/es.json
  • apps/web/src/i18n/translations/fr.json
  • apps/web/src/i18n/translations/ja.json
  • apps/web/src/i18n/translations/ko.json
  • apps/web/src/i18n/translations/pt-BR.json
  • apps/web/src/i18n/translations/ru.json
  • apps/web/src/i18n/translations/sv.json
  • apps/web/src/i18n/translations/zh.json
  • packages/contracts/src/orchestrationV2.ts
  • packages/provider-core/src/server/failure.test.ts
  • packages/provider-core/src/server/failure.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Antigravity unverified Google account passes sign-in, then fails first turn with raw 403 "Verify your account to continue"

2 participants