From 8b579e3a9253e728cd65ba610b6fc977dc915734 Mon Sep 17 00:00:00 2001 From: Cats Juice Date: Fri, 11 Jul 2025 10:58:16 +0800 Subject: [PATCH] fix(core): ensure new chat when entering chat page (#13146) ## Summary by CodeRabbit * **New Features** * Added an option to always start a new AI chat session instead of reusing the latest one. --- .../frontend/core/src/desktop/pages/workspace/chat/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/core/src/desktop/pages/workspace/chat/index.tsx b/packages/frontend/core/src/desktop/pages/workspace/chat/index.tsx index 408a6f5f1d..ebb9db223e 100644 --- a/packages/frontend/core/src/desktop/pages/workspace/chat/index.tsx +++ b/packages/frontend/core/src/desktop/pages/workspace/chat/index.tsx @@ -82,6 +82,7 @@ export const Component = () => { const sessionId = await client.createSession({ workspaceId, promptName: 'Chat With AFFiNE AI' satisfies PromptKey, + reuseLatestChat: false, ...options, });