From 2fdd4d084ae4c7e608a49053df116d95699745a1 Mon Sep 17 00:00:00 2001 From: Hiep Le <69354317+hieptl@users.noreply.github.com> Date: Wed, 29 Oct 2025 20:31:05 +0700 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20display=20=E2=80=9Cwaiting=20?= =?UTF-8?q?for=20user=20confirmation=E2=80=9D=20when=20agent=20status=20is?= =?UTF-8?q?=20=E2=80=9Cawaiting=5Fuser=5Fconfirmation=E2=80=9D=20(#11539)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/i18n/declaration.ts | 1 + frontend/src/i18n/translation.json | 16 ++++++++++++++++ frontend/src/utils/status.ts | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/frontend/src/i18n/declaration.ts b/frontend/src/i18n/declaration.ts index 5cd751a9c4..fb0e17537e 100644 --- a/frontend/src/i18n/declaration.ts +++ b/frontend/src/i18n/declaration.ts @@ -930,4 +930,5 @@ export enum I18nKey { TOAST$STOPPING_CONVERSATION = "TOAST$STOPPING_CONVERSATION", TOAST$FAILED_TO_STOP_CONVERSATION = "TOAST$FAILED_TO_STOP_CONVERSATION", TOAST$CONVERSATION_STOPPED = "TOAST$CONVERSATION_STOPPED", + AGENT_STATUS$WAITING_FOR_USER_CONFIRMATION = "AGENT_STATUS$WAITING_FOR_USER_CONFIRMATION", } diff --git a/frontend/src/i18n/translation.json b/frontend/src/i18n/translation.json index 3b0ee7bcc2..ff51ba06f0 100644 --- a/frontend/src/i18n/translation.json +++ b/frontend/src/i18n/translation.json @@ -14878,5 +14878,21 @@ "tr": "Konuşma durduruldu", "de": "Konversation gestoppt", "uk": "Розмову зупинено" + }, + "AGENT_STATUS$WAITING_FOR_USER_CONFIRMATION": { + "en": "Waiting for user confirmation", + "ja": "ユーザーの確認を待っています", + "zh-CN": "等待用户确认", + "zh-TW": "等待使用者確認", + "ko-KR": "사용자 확인 대기 중", + "no": "Venter på brukerbekreftelse", + "it": "In attesa di conferma dell'utente", + "pt": "Aguardando confirmação do usuário", + "es": "Esperando confirmación del usuario", + "ar": "في انتظار تأكيد المستخدم", + "fr": "En attente de la confirmation de l'utilisateur", + "tr": "Kullanıcı onayı bekleniyor", + "de": "Warte auf Benutzerbestätigung", + "uk": "Очікується підтвердження користувача" } } diff --git a/frontend/src/utils/status.ts b/frontend/src/utils/status.ts index 11c0314824..b450892fa1 100644 --- a/frontend/src/utils/status.ts +++ b/frontend/src/utils/status.ts @@ -24,7 +24,7 @@ export const AGENT_STATUS_MAP: { // Ready/Idle/Waiting for user input states [AgentState.AWAITING_USER_INPUT]: I18nKey.AGENT_STATUS$WAITING_FOR_TASK, [AgentState.AWAITING_USER_CONFIRMATION]: - I18nKey.AGENT_STATUS$WAITING_FOR_TASK, + I18nKey.AGENT_STATUS$WAITING_FOR_USER_CONFIRMATION, [AgentState.USER_CONFIRMED]: I18nKey.AGENT_STATUS$WAITING_FOR_TASK, [AgentState.USER_REJECTED]: I18nKey.AGENT_STATUS$WAITING_FOR_TASK, [AgentState.FINISHED]: I18nKey.AGENT_STATUS$WAITING_FOR_TASK,