Skip to content

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

Merged
t3dotgg merged 2 commits into
mainfrom
t3/takeover-pr-40226
Nov 25, 2026
Merged

t3dotgg merged 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.

@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

github-actions Bot commented Nov 23, 2026 •

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: 20a3bed · PR result: 8ecfb27 · 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 Turn as AntigravityTurnOutcome
  participant Failure as Provider failure
  participant Row as Web or mobile error row
  participant Google as Google account verification
  Turn->>Failure: Map matching verification error and validated URL
  Failure->>Row: Provide failure with verificationUrl when valid
  Row->>Google: Open verification URL when present
Loading

Suggested reviewers: juliusmarminge, bil0000

Merge Risk: Minimal · previous review 1b8b6

This change adds a Verify Google account action to failed Antigravity turns when a trusted Google continuation URL is available. Rows without a URL behave as before. No merge-blocking risk was identified.

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 extracts the Google verification URL from Antigravity 403 VALIDATION_REQUIRED…
Description check Passed The description covers the problem, the change, scope, and verification. The Problem section is covered by the opening paragraph about the 403 VALIDATION_REQUIRED error and the dropped validation_url.…
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. The contract adds the optional verificationUrl field and its validator (orchestrationV2.ts). The provider-core builder (failure.ts) and it…
Full details: Title check

Explanation

The title "fix(antigravity): link directly to Google account verification on failed turns" matches the main change. The PR extracts the Google verification URL from Antigravity 403 VALIDATION_REQUIRED errors and shows a "Verify Google account" button on failed turn rows. The title is a conventional commit, single sentence, and specific. It is 78 characters, which is a little long, but still clear.

Full details: Description check

Explanation

The description covers the problem, the change, scope, and verification. The Problem section is covered by the opening paragraph about the 403 VALIDATION_REQUIRED error and the dropped validation_url. The Change section explains URL extraction, allowlisting, validation in makeProviderFailure, and the button across desktop, web, and mobile. The Scope section links issue #16078 and notes the takeover of #40226, but the description does not say whether the issue is a bug fix or a feature. The issue objectives describe a broader feature request, and the PR only covers the first-turn error action. The Verification section lists focused tests, check commands, and a screenshot. The template asks for a short note on tools used, and the description ends with a model and harness line. The description is mostly complete. The gap is that scope should state more clearly that this is a bug fix and not the broader verification feature requested in the issue.

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. This PR implements outcome (b). At the reviewed head, apps/server/src/provider/acp/AntigravityTurnOutcome.ts parses JSON attached to the error step with balancedJsonObject. It matches an error with code 403 and status PERMISSION_DENIED, then an ErrorInfo detail with domain cloudcode-pa.googleapis.com and reason VALIDATION_REQUIRED. turnFailure returns a reusable, non-retryable permission_error with code VALIDATION_REQUIRED and the optional validation_url. The URL flows through makeProviderFailure (packages/provider-core/src/server/failure.ts), which validates it with GoogleAccountVerificationUrl (packages/contracts/src/orchestrationV2.ts). Web (TimelineWorkEntryRow.tsx) and mobile (thread-work-log.tsx) render a 'Verify Google account' action on the failed turn. The action applies per thread and provider instance. Tests in AntigravityTurnOutcome.test.ts and failure.test.ts cover both URL forms and rejected cases. Caveats: sign-in and Refresh detection is not implemented. Outcome (b) does not require it. The action opens Google's page outside T3 Code, so the verification step itself occurs in the browser. The incremental diff since the previous reviewed head could not be read, so the prior conclusion is preserved on the basis of the whole-PR summary and the reviewed head source for the extractor, which match the described behavior.

Full details: Out of Scope Changes check

Explanation

Each changed file supports the verification-action objective. The contract adds the optional verificationUrl field and its validator (orchestrationV2.ts). The provider-core builder (failure.ts) and its test (failure.test.ts) validate the URL. The server extractor (AntigravityTurnOutcome.ts) and its test produce the failure. Web and mobile rows render the button. The i18n files add only the 'Verify Google account' label and 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 and is minor and related. No unrelated behavior change was identified. The incremental diff since the previous reviewed head could not be read, so the check covers the whole-PR summary and the reviewed head source. Excluded files: none (ignored_files is empty).

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • 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 829528c and 1b8b63c.

Files selected for processing: 13

  • 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
  • packages/contracts/src/orchestrationV2.ts
  • packages/provider-core/src/server/failure.ts
Files skipped from review as they are similar to previous changes: 10

  • 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

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

@t3dotgg
t3dotgg force-pushed the t3/takeover-pr-40226 branch 2 times, most recently from 1b8b63c to 27fedda Compare November 25, 2026 05:17
codex and others added 2 commits November 24, 2026 21:17
…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>
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