CAF SI covers a single chat: how it's identified wherever it appears, and what happens to it over its life. It says nothing on how an app lists, groups or navigates its chats. Every app already has its own way (a sidebar, tabs, clackatoo's panes and workspaces), and guidance there would only push an app into growing a second one.
The identity, at three sizes Required
One component says which chat this is and whether it needs you. Use whichever size fits where the app shows chats: full for list rows, compact for tabs and menus, minimal where there's room only for a mark, such as a pane header or a workspace badge. The states and how they look are fixed. Where the component sits is the app's.
Hosting it Examples only
Three apps, three ways of listing chats, the same component. These show it fitting in. They're not layouts to copy: put chats wherever your app already puts its things.
The rules
Required
- Title: the app's label for the chat. Without one, its first message in quotes, in italics. Never its id.
- Attention: exactly the states above, looking as they do. The reason line uses CAF's words for what's going on.
- No CAF words in the app's UI. Users never see shelf, loaded, put away, session or adapter. A shelf takes the app's own word (project, workspace) or none.
- Opening a chat just opens it. If it was saved, CAF restores it; that shows only as a brief Restoring. Users never manage what's in memory, so there's no "open" against "saved".
- Closing a tab or pane never archives a chat. A saved chat is put away: saved as it is, and back as it was when opened again. While a turn runs, it's put away once the turn, and any messages queued behind it, are done; a question keeps it until it's answered. A chat waiting for its agent is put away at once, and its waiting messages stop. A chat that isn't saved stays open, out of sight, until the app stops.
- Archive is CAF's close: "I'm done with this one". It's a deliberate action, never a side effect of closing a tab. An archived chat is marked Archived where it's listed, and stays so, opened or not, until it's unarchived.
- Delete can't be undone, so it always asks first, naming the chat. Only a saved chat can be deleted.
- A new chat is an empty chat. There's no form. The agent is chosen in the composer's own settings menu, whose rail lists every agent in a new chat. The folder is a control beside it only if the app lets users choose it. Sending opens the chat.
- When it can't be restored, say which of the six reasons it is, in the words below, with only the actions that can help.
Up to the app, deliberately
- Where chats are listed: sidebar, tabs, a library, a palette, panes. Whatever the app has.
- Shelves in the UI. They follow the app's own projects or workspaces: no shelf pickers. When the app renames a project, it moves the shelf (
move_shelf). That's an API matter, not a UI one. - Search, sorting and grouping.
- Where actions live: buttons, context menus, keys. Only what they say and do is fixed.
- Empty states, and apps that keep no chats at all.
Saying anything here would encourage the awkward integration: a second sidebar beside clackatoo's panes, a shelf picker beside framewright's projects.
The lifecycle Required
What a chat goes through, as seen in the chat itself. These look the same wherever the chat is hosted. Pick a state on the left. The chat's header is drawn for context: it's the app's.