diff --git a/src/renderer/src/store/messageBlock.ts b/src/renderer/src/store/messageBlock.ts index 2a4ac9845c..c9cc55cec3 100644 --- a/src/renderer/src/store/messageBlock.ts +++ b/src/renderer/src/store/messageBlock.ts @@ -236,10 +236,11 @@ const formatCitationsFromBlock = (block: CitationMessageBlock | undefined): Cita }) ) } - // 4. Deduplicate by URL and Renumber Sequentially + // 4. Deduplicate non-knowledge citations by URL and Renumber Sequentially const urlSet = new Set() return formattedCitations .filter((citation) => { + if (citation.type === 'knowledge') return true if (!citation.url || urlSet.has(citation.url)) return false urlSet.add(citation.url) return true