Design the frontend of an AI chat app like ChatGPT or Claude: conversations and a message tree for edits and regenerations, streaming that doesn't jank, scroll behavior that respects the reader, stop and retry, and accessibility for text that arrives word by word.
"Design the frontend of ChatGPT."
AI chat looks like any chat app, but three things make it its own design problem: responses stream for many seconds, users edit and regenerate, which creates branches, and the content is rich (Markdown, code, tables) and arrives incomplete.
Functional
Non-functional
Out of scope: the model itself, file uploads, voice. (For the transport layer, see Using AI as a Frontend Engineer, which builds a streaming parser.)