Conversation state and persistence
Comes up in: Frontend system design, AI system design
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- message data model (roles, content blocks, tool use/results, metadata)
- branching and edits
- persisting threads
- syncing across devices
- context window limits shown to users
- export
Words you will know
What you will practise
- threaded chat store with branching
Interview questions this answers
- How would you model chat messages that include tool calls and results?