From c55c68a96db7de4e9faed713e71f85816363d3e9 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Fri, 20 Feb 2026 14:52:37 +0200 Subject: [PATCH] Fix frontend build: satisfy CopilotChatView messageView slot type. Closes #284 --- app/frontend/components/Chat.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/frontend/components/Chat.tsx b/app/frontend/components/Chat.tsx index b9a03257..ba0db1b0 100644 --- a/app/frontend/components/Chat.tsx +++ b/app/frontend/components/Chat.tsx @@ -237,12 +237,12 @@ const toolCallRenderers = [ // Uses CopilotChatMessageView's children render prop to post-process the // rendered message elements and inject citations at the right positions. function MessageViewWithCitations({ - messages, - isRunning, + messages = [], + isRunning = false, }: { // biome-ignore lint/suspicious/noExplicitAny: AG-UI Message type is a broad union - messages: any[]; - isRunning: boolean; + messages?: any[]; + isRunning?: boolean; }) { const ragState = useContext(ChatStateContext); const citationsHistory = ragState ? deriveCitationsHistory(ragState) : []; @@ -337,6 +337,7 @@ function MessageViewWithCitations({ ); } +MessageViewWithCitations.Cursor = CopilotChatMessageView.Cursor; function ChatContentInner({ sessionId,