Fix frontend build: satisfy CopilotChatView messageView slot type. Closes #284
This commit is contained in:
parent
eb9436eb2a
commit
c55c68a96d
1 changed files with 5 additions and 4 deletions
|
|
@ -237,12 +237,12 @@ const toolCallRenderers = [
|
||||||
// Uses CopilotChatMessageView's children render prop to post-process the
|
// Uses CopilotChatMessageView's children render prop to post-process the
|
||||||
// rendered message elements and inject citations at the right positions.
|
// rendered message elements and inject citations at the right positions.
|
||||||
function MessageViewWithCitations({
|
function MessageViewWithCitations({
|
||||||
messages,
|
messages = [],
|
||||||
isRunning,
|
isRunning = false,
|
||||||
}: {
|
}: {
|
||||||
// biome-ignore lint/suspicious/noExplicitAny: AG-UI Message type is a broad union
|
// biome-ignore lint/suspicious/noExplicitAny: AG-UI Message type is a broad union
|
||||||
messages: any[];
|
messages?: any[];
|
||||||
isRunning: boolean;
|
isRunning?: boolean;
|
||||||
}) {
|
}) {
|
||||||
const ragState = useContext(ChatStateContext);
|
const ragState = useContext(ChatStateContext);
|
||||||
const citationsHistory = ragState ? deriveCitationsHistory(ragState) : [];
|
const citationsHistory = ragState ? deriveCitationsHistory(ragState) : [];
|
||||||
|
|
@ -337,6 +337,7 @@ function MessageViewWithCitations({
|
||||||
</CopilotChatMessageView>
|
</CopilotChatMessageView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
MessageViewWithCitations.Cursor = CopilotChatMessageView.Cursor;
|
||||||
|
|
||||||
function ChatContentInner({
|
function ChatContentInner({
|
||||||
sessionId,
|
sessionId,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue