Skip to content

Type Alias: ThreadSession

ThreadSession = object

Session-scoped transcript + stream state for one conversation thread.

abortController: AbortController | null


assistantId: string | null


error: Error | null


feedbackByMessage: Record<string, MessageFeedback>


hasMoreHistory: boolean


historyLoaded: boolean


historyPage: number


lastUserText: string | null


messages: UIMessage[]


pendingApprovalsByMessage: Record<string, PendingApproval[]>


queuedSteers: QueuedSteer[]

Steers submitted mid-turn, waiting to run (oldest first).


runId: string | null


runToken: number


status: ChatStatus


toolEventsByMessage: Record<string, ToolEvent[]>