Skip to content

Interface: ThreadActionsProps

New/history controls reused by the tab strip and persistent assistant header.

optional actions?: ReactNode


optional activeThreadId?: string

Id of the active thread, rendered highlighted.

ThreadSidebarProps.activeThreadId


optional headerActions?: ReactNode

Host controls rendered in the conversation-list header.

ThreadSidebarProps.headerActions


optional historyIcon?: ReactNode


optional historyLeadingActions?: ReactNode


optional isLoading?: boolean

True while the initial list loads (shows a spinner in place of the list).

ThreadSidebarProps.isLoading


optional newIcon?: ReactNode


optional onCancel?: (threadId) => void

Cancel a thread’s in-flight run. When provided, a streaming row (one in streamingThreadIds) shows a stop button in place of its spinner on hover, so a background run can be cancelled without switching to it.

string

void

ThreadSidebarProps.onCancel


optional onDelete?: (threadId) => void

Delete a thread. Per-row trash affordance hidden when omitted.

string

void

ThreadSidebarProps.onDelete


optional onNew?: () => void

Start a fresh conversation. Hidden when omitted.

void

ThreadSidebarProps.onNew


optional onRename?: (threadId, title) => void

Rename a thread. Per-row edit affordance (inline text field) hidden when omitted.

string

string

void

ThreadSidebarProps.onRename


onSelect: (threadId) => void

Switch to a thread.

string

void

ThreadSidebarProps.onSelect


optional streamingThreadIds?: string[]

Thread ids with a generation still in flight in the background.

ThreadSidebarProps.streamingThreadIds


threads: ThreadSummary[]

Threads to list, newest first.

ThreadSidebarProps.threads