Skip to main content

CnAiChatPanel

Slide-out conversation panel for the AI Chat Companion — embeds an NcAppSidebar with the message list (CnAiMessageList) and the composer (CnAiInput). Rendered by CnAiCompanion, which owns the stream state.

Props

PropTypeRequiredDefaultNotes
visibleBooleanNofalseControls panel visibility.
streamState (stream-state)ObjectYesThe reactive state object from useAiChatStream(): { isStreaming, currentText, toolCalls, error, messages }.
fabRef (fab-ref)ObjectNonullRef to the FAB element — kept for API back-compat; focus return is handled by NcAppSidebar.

Events

EventPayloadDescription
closeUser dismissed the panel.
sendmessage textUser submitted a message via CnAiInput.
new-threadUser asked to start a fresh conversation.
load-conversationconversation uuidUser picked a past conversation from CnAiHistoryDialog.

Reference