From cb56507767e8c26c8a2a405b0fa97d265225fdde Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Thu, 7 May 2026 10:34:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=87=8D=E7=BD=AE=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=94=BE=E5=9C=A8=E5=A4=B4=E9=83=A8=EF=BC=8C=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E9=80=BB=E8=BE=91=E4=B8=8D=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/workspace/chats/[thread_id]/page.tsx | 30 +++++++++++++++++-- .../src/components/workspace/input-box.tsx | 4 +-- 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 + 5 files changed, 33 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/workspace/chats/[thread_id]/page.tsx b/frontend/src/app/workspace/chats/[thread_id]/page.tsx index 82d7f2cb..d57ead93 100644 --- a/frontend/src/app/workspace/chats/[thread_id]/page.tsx +++ b/frontend/src/app/workspace/chats/[thread_id]/page.tsx @@ -368,7 +368,14 @@ export default function ChatPage() { variant="ghost" className="px-[10px] py-[5px] text-sm font-medium text-ws-base-1 hover:text-ws-base-1/80" disabled={isStreaming} - onClick={() => setShowExitDialog(true)} + onClick={() => { + sendToParent({ + type: POST_MESSAGE_TYPES.IS_CHATTING, + isChatting: false, + }); + router.replace(`/workspace/chats/${threadId}?is_chatting=false`) + } + } > } /> */} + + + {artifacts?.length > 0 && !artifactsOpen && ( @@ -436,7 +457,12 @@ export default function ChatPage() { setSidebarOpen(false); }} > - + + + + + + {t.common.artifacts} diff --git a/frontend/src/components/workspace/input-box.tsx b/frontend/src/components/workspace/input-box.tsx index 85d2ddb1..2c93afe7 100644 --- a/frontend/src/components/workspace/input-box.tsx +++ b/frontend/src/components/workspace/input-box.tsx @@ -965,14 +965,14 @@ export function InputBox({ /> )} - {!showWelcomeStyle && ( + {/* {!showWelcomeStyle && (
- )} + )} */}
diff --git a/frontend/src/core/i18n/locales/en-US.ts b/frontend/src/core/i18n/locales/en-US.ts index d3fb090d..19762e79 100644 --- a/frontend/src/core/i18n/locales/en-US.ts +++ b/frontend/src/core/i18n/locales/en-US.ts @@ -53,6 +53,7 @@ export const enUS: Translations = { exportSuccess: "Conversation exported", removeAttachment: "Remove attachment", reference: "Reference", + resetThread: "Reset thread", }, // Welcome diff --git a/frontend/src/core/i18n/locales/types.ts b/frontend/src/core/i18n/locales/types.ts index 33a6f062..9fc67cc0 100644 --- a/frontend/src/core/i18n/locales/types.ts +++ b/frontend/src/core/i18n/locales/types.ts @@ -48,6 +48,7 @@ export interface Translations { exportSuccess: string; removeAttachment: string; reference: string; + resetThread: string; }; // Welcome diff --git a/frontend/src/core/i18n/locales/zh-CN.ts b/frontend/src/core/i18n/locales/zh-CN.ts index bc4d9610..c69b34f0 100644 --- a/frontend/src/core/i18n/locales/zh-CN.ts +++ b/frontend/src/core/i18n/locales/zh-CN.ts @@ -55,6 +55,7 @@ export const zhCN: Translations = { exportSuccess: "对话已导出", removeAttachment: "移除附件", reference: "引用", + resetThread: "重置会话", }, // Welcome