mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-12 11:43:39 +08:00
Fix: New sessions will automatically carry over messages from the previous session by default. (#18078)
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user