diff --git a/x-pack/packages/kbn-ai-assistant/src/chat/chat_body.tsx b/x-pack/packages/kbn-ai-assistant/src/chat/chat_body.tsx index 12cb747d148c4..e1cf3fa83f4bc 100644 --- a/x-pack/packages/kbn-ai-assistant/src/chat/chat_body.tsx +++ b/x-pack/packages/kbn-ai-assistant/src/chat/chat_body.tsx @@ -136,7 +136,7 @@ export function ChatBody({ const { conversation, messages, next, state, stop, saveTitle } = useConversation({ initialConversationId, - initialMessages, + ...(!initialConversationId ? { initialMessages } : {}), initialTitle, chatService, connectorId: connectors.selectedConnector,