Skip to content

Interface: ThreadTabsProps

Props for ThreadTabs.

optional activeThreadId?: string

Id of the active thread, rendered highlighted.

ThreadSidebarProps.activeThreadId


optional className?: string

Extra classes merged onto the sidebar root.

ThreadSidebarProps.className


optional isLoading?: boolean

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

ThreadSidebarProps.isLoading


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 onCloseTab?: (threadId) => void

Take a conversation off the strip. The conversation itself is kept - use ThreadSidebarProps.onDelete to remove it. Per-tab close affordance hidden when omitted.

string

void


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


openThreadIds: string[]

Ids of the conversations open as tabs, left to right. Ids without a matching ThreadSidebarProps.threads entry still render (a brand-new conversation isn’t in the server list yet).


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