Theia API Documentation v1.74.0
    Preparing search index...
    interface ChatSessionItemComponentProps {
        actions?: ChatSessionItemAction[];
        chatAgentService: ChatAgentService;
        chatService: ChatService;
        depth?: number;
        descendantNeedsAttention?: boolean;
        formatTimeAgo: (date: number) => string;
        hasChildSessions?: boolean;
        hoverService: HoverService;
        isChildSession?: boolean;
        isExpanded?: boolean;
        isRestored: boolean;
        markdownRenderer: MarkdownRenderer;
        onAction?: (
            action: ChatSessionItemAction,
            session: ChatSessionMetadata,
        ) => void;
        onClick: () => void;
        onToggleExpand?: () => void;
        session: ChatSessionMetadata;
        unreadState: UnreadStateProvider;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Actions shown in the item's action bar on hover/focus, already filtered and sorted.

    chatAgentService: ChatAgentService
    chatService: ChatService
    depth?: number

    Depth level for indentation.

    descendantNeedsAttention?: boolean

    Whether any descendant session needs user action; shows a warning badge on this row.

    formatTimeAgo: (date: number) => string
    hasChildSessions?: boolean

    Whether this session has child sessions. The children themselves are rendered separately by the parent list; this only drives the expand/collapse toggle.

    hoverService: HoverService
    isChildSession?: boolean

    Whether this item is a child of a parent session.

    isExpanded?: boolean

    Whether the parent session is expanded.

    isRestored: boolean

    Whether the session is restored from disk (true) or actively loaded in the chat service (false).

    markdownRenderer: MarkdownRenderer
    onAction?: (action: ChatSessionItemAction, session: ChatSessionMetadata) => void

    Invoked when an action is triggered, with the action and this item's session.

    onClick: () => void
    onToggleExpand?: () => void

    Called when the user toggles the expand/collapse state.

    unreadState: UnreadStateProvider