fix(core): ensure new chat when entering chat page (#13146)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Added an option to always start a new AI chat session instead of
reusing the latest one.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Cats Juice
2025-07-11 10:58:16 +08:00
committed by GitHub
parent d98b45ca3d
commit 8b579e3a92
@@ -82,6 +82,7 @@ export const Component = () => {
const sessionId = await client.createSession({
workspaceId,
promptName: 'Chat With AFFiNE AI' satisfies PromptKey,
reuseLatestChat: false,
...options,
});