Durable messaging

Durable messaging stores a conversation's messages, branches and read state across refreshes, reconnects and long-running work.

What it owns

ConceptPurpose
ConversationThread metadata, project scope, status, title, active branch, and message count.
MessageUser, assistant, system, or tool content.
Message partStructured content such as text, files, tool calls, tool results, citations, errors, and data.
BranchAlternate message path created by edits, forks, or regenerated answers.
ParticipantUser and role attached to a conversation.
Read stateLast-read cursor and unread count.
Input requestStructured input needed while work is paused.

Message graph

Messages form a graph through parent links. The conversation records the active branch tip. Editing, forking and branch selection preserve alternate paths.

Messaging and execution

Saving a message persists conversation state. A separate run request starts execution:

  1. A user prompt is stored as a message.
  2. The client requests a run, which creates or claims an assistant message.
  3. Runtime events stream and persist while work runs.
  4. Final output is stored back on the assistant message.
  5. Later reads use messages for the visible thread and runs for execution history.