We made chat feel faster without making it faster. Two UX mechanisms, same total latency.
Between dogfooding our own chat, watching LogRocket sessions, and using other AI products, the same pattern kept surfacing: streams that hang mid-response, not because the model is slow, but because tokens arrive in bursts and lulls. Inline components made it worse — the stream would stall completely while a component rendered.
When Aaron Levin mentioned a case study about Houston airport, it clicked. Complaints about baggage wait times disappeared when they increased the walk to baggage claim. Bags didn’t arrive faster, but the wait felt shorter. Same principle here.
We shipped two mechanisms to achieve this. The first is a buffer, the “accordion”, that smooths token delivery. The second uses background agents to generate components and artifacts while the primary response streams.
The accordion
Token streams arrive unevenly. Bursts, then gaps, then bursts. Users perceive gaps as lag even when total time stays constant.
The accordion buffer absorbs tokens during bursts and releases them at a steadier pace during pauses. The stream feels more continuous. Same total latency, different distribution.

This works because responses tend to be long enough to hide most processing time. Short responses don’t give the buffer enough room—any stall feels like a hang. But token pacing is only half the problem.
Background subagents
Some responses include inline components as well as separate artifacts: authentication buttons, forms to continue the conversation, generated diagrams. On-demand generation keeps them relevant, but they take longer to produce than text. The main agent places a loading state mid-stream to signal that work is happening. This also reserves the right spot in the DOM. Once the component is ready, we swap it in.
Moving component generation into background jobs has allowed us to reduce the time spent waiting for the components to be ready. A separate agent handles long-running generation while the main agent continues streaming its response.

The placeholder blocks rendering, not processing. Combined with the accordion, users see continuous text while components and artifacts assemble in parallel.
Putting it together
These two mechanisms reinforce each other. The main agent streams while background jobs generate forms, suggestions, and diagrams. Responses are faster and, more importantly, feel faster. With the buffer, there are fewer opportunities for the streamed response to feel like it’s hanging. And with concurrent generation, there are fewer opportunities for the creation of components and artifacts to block the stream. The chat feels different to use, with fewer moments spent watching a cursor blink.
Also on Substack, where you can get new posts by email.