Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(assistant-ui): add empty citation sources constant

Steven Enamakele7eb12705fc7
diff --git a/app/src/components/assistant-ui/markdown-text.tsx b/app/src/components/assistant-ui/markdown-text.tsx
index ab998ecd27..970f7bdd69 100644
--- a/app/src/components/assistant-ui/markdown-text.tsx
+++ b/app/src/components/assistant-ui/markdown-text.tsx
@@ -38,6 +38,7 @@ import { extractLanguage, extractTextContent } from '../markdown/CodeBlock';
* reach its components through context rather than a closure.
*/
const CitationSourcesContext = createContext<readonly CitationSource[]>([]);
+const EMPTY_CITATION_SOURCES: readonly CitationSource[] = [];
function sourcePartsToCitations(parts: AssistantState['message']['parts']): CitationSource[] {
return parts.flatMap((part): CitationSource[] => {