Skip to content

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

fix(assistant-ui): rename empty citation sources constant

Steven Enamakel24dbfad8684b
diff --git a/app/src/components/assistant-ui/markdown-text.tsx b/app/src/components/assistant-ui/markdown-text.tsx
index 3c4c7e40dc..2d95414e2e 100644
--- a/app/src/components/assistant-ui/markdown-text.tsx
+++ b/app/src/components/assistant-ui/markdown-text.tsx
@@ -39,7 +39,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[] = [];
+const EMPTY_MESSAGE_PARTS: AssistantState['message']['parts'] = [];
function sourcePartsToCitations(parts: AssistantState['message']['parts']): CitationSource[] {
return parts.flatMap((part): CitationSource[] => {