mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-14 17:08:31 +08:00
Fix: prioritize explore session ID and reset default conversation variables (#14399)
### What problem does this PR solve? prioritize explore session ID and reset default conversation variables ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -315,7 +315,10 @@ export const useSendAgentMessage = ({
|
||||
|
||||
params.files = uploadResponseList;
|
||||
|
||||
params.session_id = sessionId || exploreSessionId;
|
||||
// Prefer the session selected by the outer page state.
|
||||
// The hook keeps its own session cache for streamed replies, but that cache
|
||||
// can lag behind when the user switches sessions in Explore.
|
||||
params.session_id = exploreSessionId || sessionId;
|
||||
if (releaseMode) {
|
||||
params.release = releaseMode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user