Conversation context and history
Session ownership, bounded context, message ordering, retry and history restoration.
On this page
Isolation and ordering
One verified wallet maps to a user row. Each conversation belongs to that user and messages have increasing sequence numbers inside the session. The list supports search and pagination. Messages paginate backwards by sequence and render in conversation order. Renaming and deletion operate on the owner’s session. Importing old browser chats is explicit and limited to screened user messages.
Reconstruction and idempotency
The message handler selects up to 24 completed rows from the current conversation, orders that slice chronologically, and applies a character budget before the Claude request. The default character limit is 24,000. The source of model context is a bounded, screened slice rather than all stored history. Separate conversations are not combined into an account-wide memory.
The client request UUID scopes retry and regeneration. A pending reply in the same conversation can return an accepted response while the existing request is running. A lease guards writes for an active response; stale pending rows can be treated as interrupted. Completed request IDs can return their existing state instead of starting another turn.
Restored records
History can include stored text, typed blocks, sources, tool summaries, action metadata, and feedback. A local prepared amount or recipient is not reconstructed from the server response. Vault recovery is separate from conversation restoration.
See database relationships and streaming.

CogniTech