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:
@@ -82,6 +82,7 @@ export const Component = () => {
|
|||||||
const sessionId = await client.createSession({
|
const sessionId = await client.createSession({
|
||||||
workspaceId,
|
workspaceId,
|
||||||
promptName: 'Chat With AFFiNE AI' satisfies PromptKey,
|
promptName: 'Chat With AFFiNE AI' satisfies PromptKey,
|
||||||
|
reuseLatestChat: false,
|
||||||
...options,
|
...options,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user