Users Pricing

forum

Home Forums What should my app do when a user cancels an OpenAI response mid-stream? – MindStick

What should my app do when a user cancels an OpenAI response mid-stream?

Stefano Coppola 57 21 Oct 2026

I’m integrating streamed OpenAI responses into a chat interface, and I’m unsure what the cleanest behavior is when someone hits Stop. By then, the server may have received several chunks, while the user has only seen part of the answer.

Should I keep the partial text in the conversation, mark it as interrupted, or discard it and leave the previous turn untouched? I’m also curious how people handle a cancellation that arrives just as the response is finishing.


0 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md