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:
buua436
2026-04-27 18:52:40 +08:00
committed by GitHub
parent 10e28e5c5f
commit 4f6651968a
2 changed files with 23 additions and 17 deletions

View File

@@ -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;
}