From 905836bdac6f5aff520bc6f1586d61dc21aadd58 Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Thu, 9 Apr 2026 10:41:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=9F=E6=88=90=E4=B8=AD=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E8=BF=94=E5=9B=9E=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/workspace/chats/[thread_id]/page.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/workspace/chats/[thread_id]/page.tsx b/frontend/src/app/workspace/chats/[thread_id]/page.tsx index 1fc94353..f5a2d4c1 100644 --- a/frontend/src/app/workspace/chats/[thread_id]/page.tsx +++ b/frontend/src/app/workspace/chats/[thread_id]/page.tsx @@ -63,7 +63,7 @@ export default function ChatPage() { isMock, showWelcomeStyle, } = useThreadChat(); - + // 新逻辑:历史渲染和新会话仅由路由 /chats/new 控制,不再读取 isnew/is_chatting 参数。 const shouldRenderHistory = !showWelcomeStyle; const createNewSession = useMemo(() => isNewThread, [isNewThread]); @@ -99,8 +99,8 @@ export default function ChatPage() { onStart: (currentThreadId) => { setIsNewThread(false); // if (!shouldStayOnNewRoute) { - // Keep /new in history so router.back() can return to it. - router.replace(`/workspace/chats/${currentThreadId}?is_chatting=true`); + // Keep /new in history so router.back() can return to it. + router.replace(`/workspace/chats/${currentThreadId}?is_chatting=true`); // } // history.pushState(null, "", pathOfThread(currentThreadId)); }, @@ -193,6 +193,7 @@ export default function ChatPage() { const todoListCollapsed = true; const [showExitDialog, setShowExitDialog] = useState(false); + const isStreaming = isUploading || thread.isLoading; const handleSubmit = useCallback( (message: Parameters[1]) => { if (isSelectedSkillBootstrapping) { @@ -222,10 +223,10 @@ export default function ChatPage() { setArtifactsOpen, setIsNewThread, ]); - + return ( - +
setShowExitDialog(true)} > @@ -475,7 +478,7 @@ export default function ChatPage() { 提示

- (测试中:计划销毁但是现在没有销毁) 退出后,当前会话结束并销毁,请先下载保存当前结果! + (测试中:计划销毁但是现在没有销毁) 退出后,当前会话结束并销毁,请先下载保存当前结果!