Chat Interface

9 patterns for this issue

Goal: The chat window itself works: messages arrive, drafts and attachments are kept, history is findable, and nothing is silently lost.

Why this family exists

Some chatbot failures have nothing to do with the model. The window jumps to the bottom while someone is reading, a message typed on a weak connection disappears, or a file is skipped and the bot answers as if it read it. These are client and pipeline bugs, so a better model does not fix them, and they rarely show up in answer-quality reviews. They show up as lost work, repeated messages and answers that confidently ignore what the person sent.

How we measure it

Each pattern page defines its own primary metric. Targets are starting points to tune on your own data and are proposed, not measured.

MetricDefined in
Reports of scroll jumping; scroll-up events during streaming that were overriddenauto-scroll fights the reader (GitHub)
Messages lost per 1,000 sent (design target 0)lost drafts and failed sends (GitHub)
Attachments dropped without a message (design target 0)silent attachment failures (GitHub)
Time to find a past answer in a usability testlong threads can’t be searched (GitHub)
Share of sessions that restart after a single-message errorno editing or branching of a sent message (GitHub)
Export fidelity pass rate on a sample of reply typescopy, share, and export lose content (GitHub)
Typed replies handled when buttons are shown (design target 100%)quick-reply buttons that don’t match what was typed (GitHub)
Mismatched replies per 1,000 rapid-fire exchangescrossed messages (GitHub)
Layout defects per device in release testingmobile keyboard or screen hides the reply (GitHub)

Patterns

PatternOne line
Auto-scroll fights the reader (GitHub)While a reply streams, the window keeps jumping to the bottom so the person can’t read the top
Lost drafts and failed sends (GitHub)A message typed on a weak connection disappears, or sending fails with no sign
Silent attachment failures (GitHub)A file is too large, unsupported or cut short, and the bot answers as if it read it all
Long threads can’t be searched (GitHub)People can’t find last week’s answer: no message search, vague titles, no pinning
No editing or branching of a sent message (GitHub)A typo in one sent message means starting the chat again
Copy, share, and export lose content (GitHub)Tables, code and links break when a reply is copied, shared or exported
Quick-reply buttons that don’t match what was typed (GitHub)Typed answers are ignored while quick-reply buttons are showing
Crossed messages (GitHub)Two quick messages get replies to the wrong one, out of order, or one is dropped
Mobile keyboard or screen hides the reply (GitHub)On a phone the keyboard or a small screen hides the latest answer

Planned (not yet written)

Row CM-10 (shared devices show someone else’s chat) has no page here. Its example lives in cross session bleed (GitHub). The rest of the catalog is in the roadmap (GitHub).