Skip to content

Interface: ThreadSidebarProps

Props for ThreadSidebar.

optional activeThreadId?: string

Id of the active thread, rendered highlighted.


optional className?: string

Extra classes merged onto the sidebar root.


optional isLoading?: boolean

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


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


optional onDelete?: (threadId) => void

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

string

void


optional onHide?: () => void

Collapse the sidebar. Renders the hide button in the header when provided.

void


optional onNew?: () => void

Start a fresh conversation. Hidden when omitted.

void


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

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

string

string

void


onSelect: (threadId) => void

Switch to a thread.

string

void


optional side?: "left" | "right"

Edge the sidebar is docked to. Only affects framing - which side carries the divider, and which way the collapse icon points. Defaults to left.


optional streamingThreadIds?: string[]

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


threads: ThreadSummary[]

Threads to list, newest first.