From f930b1c1bc2a8a1a1b1824aea6fac3664f6bb5e3 Mon Sep 17 00:00:00 2001 From: chanx <1243304602@qq.com> Date: Tue, 11 Aug 2026 13:38:46 +0800 Subject: [PATCH] Fix: New sessions will automatically carry over messages from the previous session by default. (#18078) --- web/src/pages/next-chats/chat/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/pages/next-chats/chat/index.tsx b/web/src/pages/next-chats/chat/index.tsx index a1b3367df7..eb36f41d31 100644 --- a/web/src/pages/next-chats/chat/index.tsx +++ b/web/src/pages/next-chats/chat/index.tsx @@ -53,6 +53,9 @@ export default function Chat() { if (!isEmpty(conversation)) { setCurrentConversation(conversation); } + } else { + // New session: clear previous session's messages so they don't leak in. + setCurrentConversation({} as IClientConversation); } }, [fetchSessionManually],