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