
Custom Instructions
AI chat
Search by name, tag, category or type
Source and install need .
pnpm dlx shadcn@latest add @assembli/chat-historyConversation history sidebar: a New chat button with ⌘⇧O, search that highlights hits in titles and shows a matched snippet from the chat, a Pinned section and date groups. Each row's menu renames in place, pins (the row slides between sections), shares, archives or deletes behind an Undo strip. Live chats show a spinner, and arrow keys move between rows.
Other props pass through to the root element.
conversations*
Conversation[]
activeId
string
The open chat. Leave undefined to let the sidebar track it.
defaultActiveId
string
onSelect
(id: string) => void
onNewChat
() => void
onRename
(id: string, title: string) => void
onPin
(id: string, pinned: boolean) => void
onShare
(id: string) => void
onArchive
(id: string) => void
Called once the undo window closes.
onDelete
(id: string) => void
Called once the undo window closes.
account
ChatHistoryAccount
now
Date
Reference time for the date groups. Defaults to now.
undoMs
number
Default 5000
How long Undo stays offered, in ms.
| Description | |||
|---|---|---|---|
| conversations* | Conversation[] | – | |
| activeId | string | – | The open chat. Leave undefined to let the sidebar track it. |
| defaultActiveId | string | – | |
| onSelect | (id: string) => void | – | |
| onNewChat | () => void | – | |
| onRename | (id: string, title: string) => void | – | |
| onPin | (id: string, pinned: boolean) => void | – | |
| onShare | (id: string) => void | – | |
| onArchive | (id: string) => void | – | Called once the undo window closes. |
| onDelete | (id: string) => void | – | Called once the undo window closes. |
| account | ChatHistoryAccount | – | |
| now | Date | – | Reference time for the date groups. Defaults to now. |
| undoMs | number | 5000 | How long Undo stays offered, in ms. |

AI chat

AI chat

AI chat

AI chat