diff --git a/apps/mobile/src/features/threads/thread-work-log.tsx b/apps/mobile/src/features/threads/thread-work-log.tsx
index f0bc00e11385e..b23decab83fdf 100644
--- a/apps/mobile/src/features/threads/thread-work-log.tsx
+++ b/apps/mobile/src/features/threads/thread-work-log.tsx
@@ -71,6 +71,7 @@ import { T3Wordmark } from "../../components/T3Wordmark";
import { BrowserAppIcon } from "./BrowserAppIcon";
import { useAppActive, useReduceMotionEnabled } from "../../lib/appState";
import { cn } from "../../lib/cn";
+import { tryOpenExternalUrl } from "../../lib/openExternalUrl";
import { THREAD_WORK_ROW_MIN_HEIGHT, type deriveThreadWorkLogSizing } from "../../lib/layout";
import {
formatItemFullDetail,
@@ -933,7 +934,7 @@ const ThreadWorkLogRow = function ThreadWorkLogRow(
? gt("Usage limit reached. Retry after {resetTime}.", { resetTime })
: gt("Usage limit reached.")
: row.summary;
- return (
+ const errorRow = (
);
+ const verificationUrl = failureItem.failure.verificationUrl;
+ return verificationUrl === undefined ? (
+ errorRow
+ ) : (
+
+ {errorRow}
+
+
+
+ );
}
const notifiedSubagentThreadId =
row.projectedItem.item.type === "notification"
diff --git a/apps/mobile/src/i18n/translations/de.json b/apps/mobile/src/i18n/translations/de.json
index 10ed053228b10..ed0edcfd92d42 100644
--- a/apps/mobile/src/i18n/translations/de.json
+++ b/apps/mobile/src/i18n/translations/de.json
@@ -5613,5 +5613,6 @@
"856812e7e1fc445e": "Tool-Aufrufe im Chat",
"8d545d54c0a9e950": "Die Befehle, Bearbeitungen und Suchen ausblenden, die Agenten ausführen. „Erfolgreiche ausblenden“ behält Fehler. „Zen“ zeigt nur endgültige Antworten. Genehmigungen, Fragen und Fehler werden immer angezeigt.",
"99d51127f573296b": "Weiteres Konto",
- "8ec2c57414669b79": "Verbinde einen zweiten {tracker}-Workspace oder -Nutzer."
+ "8ec2c57414669b79": "Verbinde einen zweiten {tracker}-Workspace oder -Nutzer.",
+ "1a1beecff68a6e61": "Google-Konto bestätigen"
}
diff --git a/apps/mobile/src/i18n/translations/en.json b/apps/mobile/src/i18n/translations/en.json
index 312e7e4c60bbd..815eb63912eb4 100644
--- a/apps/mobile/src/i18n/translations/en.json
+++ b/apps/mobile/src/i18n/translations/en.json
@@ -5615,5 +5615,6 @@
"856812e7e1fc445e": "Tool calls in chat",
"8d545d54c0a9e950": "Hide the commands, edits, and searches agents run. Hide successful keeps failures. Zen shows only final answers. Approvals, questions, and errors always show.",
"99d51127f573296b": "Another account",
- "8ec2c57414669b79": "Connect a second {tracker} workspace or user."
+ "8ec2c57414669b79": "Connect a second {tracker} workspace or user.",
+ "1a1beecff68a6e61": "Verify Google account"
}
diff --git a/apps/mobile/src/i18n/translations/es.json b/apps/mobile/src/i18n/translations/es.json
index 9124637171066..f35567bbb561b 100644
--- a/apps/mobile/src/i18n/translations/es.json
+++ b/apps/mobile/src/i18n/translations/es.json
@@ -5607,5 +5607,6 @@
"856812e7e1fc445e": "Llamadas a herramientas en el chat",
"8d545d54c0a9e950": "Oculta los comandos, ediciones y búsquedas que ejecutan los agentes. Ocultar las correctas mantiene los fallos. Zen solo muestra las respuestas finales. Las aprobaciones, preguntas y errores siempre se muestran.",
"99d51127f573296b": "Otra cuenta",
- "8ec2c57414669b79": "Conecta un segundo espacio de trabajo o usuario de {tracker}."
+ "8ec2c57414669b79": "Conecta un segundo espacio de trabajo o usuario de {tracker}.",
+ "1a1beecff68a6e61": "Verificar cuenta de Google"
}
diff --git a/apps/mobile/src/i18n/translations/fr.json b/apps/mobile/src/i18n/translations/fr.json
index ad9d49d83c52c..68578f5da9330 100644
--- a/apps/mobile/src/i18n/translations/fr.json
+++ b/apps/mobile/src/i18n/translations/fr.json
@@ -5607,5 +5607,6 @@
"856812e7e1fc445e": "Appels d’outils dans la discussion",
"8d545d54c0a9e950": "Masque les commandes, modifications et recherches lancées par les agents. Masquer les réussis garde les échecs. Zen n’affiche que les réponses finales. Les approbations, questions et erreurs s’affichent toujours.",
"99d51127f573296b": "Autre compte",
- "8ec2c57414669b79": "Connectez un second espace de travail ou utilisateur {tracker}."
+ "8ec2c57414669b79": "Connectez un second espace de travail ou utilisateur {tracker}.",
+ "1a1beecff68a6e61": "Vérifier le compte Google"
}
diff --git a/apps/mobile/src/i18n/translations/ja.json b/apps/mobile/src/i18n/translations/ja.json
index b80aeaddbb35a..25dbf0bf084df 100644
--- a/apps/mobile/src/i18n/translations/ja.json
+++ b/apps/mobile/src/i18n/translations/ja.json
@@ -5587,5 +5587,6 @@
"856812e7e1fc445e": "チャット内のツール呼び出し",
"8d545d54c0a9e950": "エージェントが実行するコマンド、編集、検索を非表示にします。「成功したものを非表示」では失敗は表示されます。Zen では最終的な回答だけを表示します。承認、質問、エラーは常に表示されます。",
"99d51127f573296b": "別のアカウント",
- "8ec2c57414669b79": "2つ目の {tracker} ワークスペースまたはユーザーを接続します。"
+ "8ec2c57414669b79": "2つ目の {tracker} ワークスペースまたはユーザーを接続します。",
+ "1a1beecff68a6e61": "Google アカウントを確認"
}
diff --git a/apps/mobile/src/i18n/translations/ko.json b/apps/mobile/src/i18n/translations/ko.json
index b35b6391337f1..d74d981e872dd 100644
--- a/apps/mobile/src/i18n/translations/ko.json
+++ b/apps/mobile/src/i18n/translations/ko.json
@@ -5593,5 +5593,6 @@
"856812e7e1fc445e": "채팅의 도구 호출",
"8d545d54c0a9e950": "에이전트가 실행하는 명령, 편집, 검색을 숨깁니다. 성공한 항목 숨기기는 실패를 남겨 둡니다. Zen은 최종 답변만 표시합니다. 승인, 질문, 오류는 항상 표시됩니다.",
"99d51127f573296b": "다른 계정",
- "8ec2c57414669b79": "두 번째 {tracker} 워크스페이스 또는 사용자를 연결합니다."
+ "8ec2c57414669b79": "두 번째 {tracker} 워크스페이스 또는 사용자를 연결합니다.",
+ "1a1beecff68a6e61": "Google 계정 확인"
}
diff --git a/apps/mobile/src/i18n/translations/pt-BR.json b/apps/mobile/src/i18n/translations/pt-BR.json
index 037e9559e0aa3..caed090b7ad50 100644
--- a/apps/mobile/src/i18n/translations/pt-BR.json
+++ b/apps/mobile/src/i18n/translations/pt-BR.json
@@ -5607,5 +5607,6 @@
"856812e7e1fc445e": "Chamadas de ferramentas no chat",
"8d545d54c0a9e950": "Oculta os comandos, edições e pesquisas que os agentes executam. \"Ocultar bem-sucedidas\" mantém as falhas. Zen mostra só as respostas finais. Aprovações, perguntas e erros sempre aparecem.",
"99d51127f573296b": "Outra conta",
- "8ec2c57414669b79": "Conecte um segundo espaço de trabalho ou usuário do {tracker}."
+ "8ec2c57414669b79": "Conecte um segundo espaço de trabalho ou usuário do {tracker}.",
+ "1a1beecff68a6e61": "Verificar conta Google"
}
diff --git a/apps/mobile/src/i18n/translations/ru.json b/apps/mobile/src/i18n/translations/ru.json
index a36a2f6e8716b..3c3d0e4f3940f 100644
--- a/apps/mobile/src/i18n/translations/ru.json
+++ b/apps/mobile/src/i18n/translations/ru.json
@@ -5687,5 +5687,6 @@
"856812e7e1fc445e": "Вызовы инструментов в чате",
"8d545d54c0a9e950": "Скрывать команды, правки и поиски, которые выполняют агенты. «Скрывать успешные» оставляет ошибки. «Дзен» показывает только итоговые ответы. Запросы подтверждения, вопросы и ошибки показываются всегда.",
"99d51127f573296b": "Другой аккаунт",
- "8ec2c57414669b79": "Подключите второе рабочее пространство или пользователя {tracker}."
+ "8ec2c57414669b79": "Подключите второе рабочее пространство или пользователя {tracker}.",
+ "1a1beecff68a6e61": "Подтвердить аккаунт Google"
}
diff --git a/apps/mobile/src/i18n/translations/sv.json b/apps/mobile/src/i18n/translations/sv.json
index 6c1040e3eb0b0..3f3f1c05bfaa3 100644
--- a/apps/mobile/src/i18n/translations/sv.json
+++ b/apps/mobile/src/i18n/translations/sv.json
@@ -5613,5 +5613,6 @@
"856812e7e1fc445e": "Verktygsanrop i chatten",
"8d545d54c0a9e950": "Dölj kommandon, redigeringar och sökningar som agenter kör. Dölj lyckade behåller misslyckanden. Zen visar bara slutliga svar. Godkännanden, frågor och fel visas alltid.",
"99d51127f573296b": "Ett konto till",
- "8ec2c57414669b79": "Anslut en andra {tracker}-arbetsyta eller användare."
+ "8ec2c57414669b79": "Anslut en andra {tracker}-arbetsyta eller användare.",
+ "1a1beecff68a6e61": "Verifiera Google-konto"
}
diff --git a/apps/mobile/src/i18n/translations/zh.json b/apps/mobile/src/i18n/translations/zh.json
index 7f0cdbac92e7d..86bb40ef43e41 100644
--- a/apps/mobile/src/i18n/translations/zh.json
+++ b/apps/mobile/src/i18n/translations/zh.json
@@ -5597,5 +5597,6 @@
"856812e7e1fc445e": "聊天中的工具调用",
"8d545d54c0a9e950": "隐藏智能体执行的命令、编辑和搜索。“隐藏成功的调用”仍保留失败项;“专注模式”仅显示最终回答。审批、提问和错误始终显示。",
"99d51127f573296b": "其他账号",
- "8ec2c57414669b79": "连接第二个 {tracker} 工作区或用户。"
+ "8ec2c57414669b79": "连接第二个 {tracker} 工作区或用户。",
+ "1a1beecff68a6e61": "验证 Google 账户"
}
diff --git a/apps/server/src/provider/acp/AntigravityTurnOutcome.test.ts b/apps/server/src/provider/acp/AntigravityTurnOutcome.test.ts
index 962da73bfc2bd..b76e81f5cd6cf 100644
--- a/apps/server/src/provider/acp/AntigravityTurnOutcome.test.ts
+++ b/apps/server/src/provider/acp/AntigravityTurnOutcome.test.ts
@@ -43,6 +43,32 @@ const BAD_GATEWAY_ERROR = Buffer.concat([
),
Buffer.from("\nThe model is currently unreachable."),
]);
+const VERIFICATION_URL =
+ "https://accounts.google.com/v3/signin/continue?plt=fixture&flowName=GlifWebSignIn";
+const CLASSIC_VERIFICATION_URL =
+ "https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=fixture&flowName=GlifWebSignIn";
+const verificationError = (url: string | undefined, compact = false) => {
+ const response = {
+ error: {
+ code: 403,
+ details: [
+ { "@type": "type.googleapis.com/google.rpc.Help", links: [] },
+ {
+ "@type": "type.googleapis.com/google.rpc.ErrorInfo",
+ domain: "cloudcode-pa.googleapis.com",
+ metadata: { validation_url: url },
+ reason: "VALIDATION_REQUIRED",
+ },
+ ],
+ message: "Verify your account to continue.",
+ status: "PERMISSION_DENIED",
+ },
+ };
+ const body = compact ? JSON.stringify(response) : JSON.stringify(response, null, 2);
+ return errorPayload(
+ `Verification Required\u0012PERMISSION_DENIED (code 403): Verify your account to continue.\u001aHTTP 403 Forbidden\n\n${body}\n`,
+ );
+};
// Vertex Claude rejects a resumed history whose saved thinking block lost its signature.
const MISSING_SIGNATURE_ERROR = errorPayload(
'Error 400, Message: {"type":"error","error":{"type":"invalid_request_error","message":"messages.1.content.0.thinking.signature: Field required"},"request_id":"req_vrtx_test"}, Status: INVALID_ARGUMENT, Details: []',
@@ -222,6 +248,34 @@ describe("watchAntigravityPromptOutcome", () => {
]))?.failure.retryable,
false,
);
+ // Google account verification errors surface the verified continuation link on both
+ // pretty-printed and compact HTTP bodies, while rejecting untrusted or malformed URLs.
+ for (const [url, compact, accepted] of [
+ [VERIFICATION_URL, false, true],
+ [CLASSIC_VERIFICATION_URL, true, true],
+ [undefined, false, false],
+ [
+ "https://accounts.google.com.example.invalid/v3/signin/continue?plt=fixture",
+ false,
+ false,
+ ],
+ ["https://accounts.google.com/v3/signin/continue?plt=fixture\u0007", false, false],
+ ] as const) {
+ assert.deepEqual(
+ yield* turn([
+ [USER_INPUT, input],
+ [ERROR_MESSAGE, verificationError(url, compact)],
+ ]),
+ reusable({
+ class: "permission_error",
+ message: "Verify your Google account, then retry this turn.",
+ code: "VALIDATION_REQUIRED",
+ retryable: false,
+ ...(accepted && url !== undefined ? { verificationUrl: url } : {}),
+ }),
+ );
+ }
+ assert.isUndefined(yield* turn([[PLANNER_RESPONSE, verificationError(VERIFICATION_URL)]]));
// A saved thinking block without a valid signature fails every later prompt.
for (const error of [MISSING_SIGNATURE_ERROR, INVALID_SIGNATURE_ERROR]) {
const outcome = yield* turn([
diff --git a/apps/server/src/provider/acp/AntigravityTurnOutcome.ts b/apps/server/src/provider/acp/AntigravityTurnOutcome.ts
index 35ed2f347df1d..fabfe7dbbc50b 100644
--- a/apps/server/src/provider/acp/AntigravityTurnOutcome.ts
+++ b/apps/server/src/provider/acp/AntigravityTurnOutcome.ts
@@ -26,6 +26,29 @@ const API_ERROR =
/Error (\d{3}), Message: ((?:(?!, Status: |Error \d{3}, Message: ).)+), Status: ([A-Z_]+|\d{3}[^,\n]*)/s;
// Antigravity 1.5 with a Google account writes "STATUS (code NNN): message".
const STATUS_ERROR = /(?
) : null}
+ {verificationUrl !== undefined ? (
+
+ }
+ >
+ Verify Google account
+
+
+
+ ) : null}
{retryRunId !== null && onRetryWorkspacePreparation ? (