Interface: ThreadActionsProps
New/history controls reused by the tab strip and persistent assistant header.
Extends
Section titled “Extends”Omit<ThreadSidebarProps,"onHide"|"side"|"className">
Properties
Section titled “Properties”actions?
Section titled “actions?”
optionalactions?:ReactNode
activeThreadId?
Section titled “activeThreadId?”
optionalactiveThreadId?:string
Id of the active thread, rendered highlighted.
Inherited from
Section titled “Inherited from”ThreadSidebarProps.activeThreadId
headerActions?
Section titled “headerActions?”
optionalheaderActions?:ReactNode
Host controls rendered in the conversation-list header.
Inherited from
Section titled “Inherited from”ThreadSidebarProps.headerActions
historyIcon?
Section titled “historyIcon?”
optionalhistoryIcon?:ReactNode
historyLeadingActions?
Section titled “historyLeadingActions?”
optionalhistoryLeadingActions?:ReactNode
isLoading?
Section titled “isLoading?”
optionalisLoading?:boolean
True while the initial list loads (shows a spinner in place of the list).
Inherited from
Section titled “Inherited from”newIcon?
Section titled “newIcon?”
optionalnewIcon?:ReactNode
onCancel?
Section titled “onCancel?”
optionalonCancel?: (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.
Parameters
Section titled “Parameters”threadId
Section titled “threadId”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onDelete?
Section titled “onDelete?”
optionalonDelete?: (threadId) =>void
Delete a thread. Per-row trash affordance hidden when omitted.
Parameters
Section titled “Parameters”threadId
Section titled “threadId”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onNew?
Section titled “onNew?”
optionalonNew?: () =>void
Start a fresh conversation. Hidden when omitted.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onRename?
Section titled “onRename?”
optionalonRename?: (threadId,title) =>void
Rename a thread. Per-row edit affordance (inline text field) hidden when omitted.
Parameters
Section titled “Parameters”threadId
Section titled “threadId”string
string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”onSelect
Section titled “onSelect”onSelect: (
threadId) =>void
Switch to a thread.
Parameters
Section titled “Parameters”threadId
Section titled “threadId”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”streamingThreadIds?
Section titled “streamingThreadIds?”
optionalstreamingThreadIds?:string[]
Thread ids with a generation still in flight in the background.
Inherited from
Section titled “Inherited from”ThreadSidebarProps.streamingThreadIds
threads
Section titled “threads”threads:
ThreadSummary[]
Threads to list, newest first.