fix: preserve knowledge base references

This commit is contained in:
吉鑫升 committed 2026-08-31 18:02:05 +08:00
1 parent 40542db400
commit 8e0d755b57
7 files changed
+43 -13

No files matched your search

+8 -1
View File
@@ -688,7 +688,14 @@ export default function ChatPage() {
!isWujieEnv();
return (
<ThreadContext.Provider value={{ thread: displayThread, isMock }}>
<ThreadContext.Provider
value={{
thread: displayThread,
isMock,
knowledgeReferencesEnabled:
knowledgeSelectionReady && selectedKnowledgeBaseIds.length > 0,
}}
>
<ChatBox threadId={threadId}>
<div
className={cn(