Get the latest tech news

Preventing Flash of Incomplete Markdown when streaming AI responses


You’ve heard of Flash of Unstyled Content (FOUC) before, where you see unstyled HTML appear, then the CSS loads and the browser suddenly updates to display the correct style. A similar problem occurs when streaming AI responses and there's a simple solution for it.

A similar problem exists when streaming responses generated by AI that I call “Flash of Incomplete Markdown” (FOIM). One of the AI features Streak offers is the ability to ask a question about one of your deals, where the answer may be in any related email threads, various comments, meeting notes, and so on. I haven’t implemented support for the full spec since we have well known formats for our link text and URLs, but should the need arise the state machine can easily be extended.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Flash

Flash

Photo of responses

responses

Photo of incomplete markdown

incomplete markdown

Related news:

News photo

Flash Back: An “oral” history of Flash

News photo

Google has a big AI advantage: it already knows everything about you | Google is slowly giving Gemini more and more access to user data to ‘personalize’ your responses.

News photo

Gemini 2.5 Pro now thinks deeply; 2.5 Flash beefed up across all dimensions