From cb698832deaf876d204045a68d79acedcbb1d26c Mon Sep 17 00:00:00 2001
From: DanielWalnut <45447813+hetaoBackend@users.noreply.github.com>
Date: Wed, 22 Jul 2026 21:31:27 +0800
Subject: [PATCH] feat(frontend): add localized AI disclaimer (#4374)
* feat(frontend): add localized AI disclaimer
* fix(frontend): preserve sidecar composer alignment
---
README.md | 3 +++
frontend/src/components/workspace/input-box.tsx | 9 +++++++++
frontend/src/core/i18n/locales/en-US.ts | 1 +
frontend/src/core/i18n/locales/types.ts | 1 +
frontend/src/core/i18n/locales/zh-CN.ts | 1 +
frontend/tests/e2e/agent-chat.spec.ts | 7 ++++++-
frontend/tests/e2e/chat.spec.ts | 12 ++++++++++++
frontend/tests/unit/core/i18n/translations.test.ts | 14 ++++++++++++++
8 files changed, 47 insertions(+), 1 deletion(-)
create mode 100644 frontend/tests/unit/core/i18n/translations.test.ts
diff --git a/README.md b/README.md
index 5ae6cd711..4e566c532 100644
--- a/README.md
+++ b/README.md
@@ -682,6 +682,9 @@ Unsent Web UI composer drafts survive page reloads and switching between convers
The Web UI composer also supports browser-based voice dictation when the browser exposes the Web Speech API. The microphone button transcribes speech into the local draft only; DeerFlow receives only the transcribed text, while audio handling is delegated to the browser or operating system speech-recognition service according to that environment's policy. Users can review or edit the text before sending.
+The Web UI displays a localized AI-generated-content disclaimer below the composer in both standard and custom-agent conversations, reminding users to verify important
+information.
+
Interrupted first-turn runs still persist a fallback conversation title, so stopping a streaming response does not leave the thread as "Untitled" after refresh.
Streaming Markdown responses animate only newly arrived words; text that is already visible is not faded out and replayed when the next chunk extends the same block.
diff --git a/frontend/src/components/workspace/input-box.tsx b/frontend/src/components/workspace/input-box.tsx
index f8dec2bd9..4f8f438b1 100644
--- a/frontend/src/components/workspace/input-box.tsx
+++ b/frontend/src/components/workspace/input-box.tsx
@@ -2689,6 +2689,15 @@ export function InputBox({
)}
+
+ {t.inputBox.disclaimer}
+
+