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.

@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

⚠️ The latest CI run did not produce a thread transfer result for 1b8b63c.

This comment will update automatically after the next completed run.

@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 · up to 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.

codex and others added 2 commits November 23, 2026 14:24
…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>
@t3dotgg
t3dotgg force-pushed the t3/takeover-pr-40226 branch from 829528c to 1b8b63c Compare November 23, 2026 22:24

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