Agent Stop Button
What this covers
While the agent is streaming a response, the Send button transforms into a Stop button. Clicking it cancels the in-progress response immediately.
When the Stop button appears
The Stop button replaces the Send button whenever a server-sent events (SSE) stream is active — from the moment you send a message until the agent finishes its response. Once the response completes (or is cancelled), the button reverts to Send.
What happens when you click Stop
- The frontend fires an AbortController signal, which terminates the active
fetch()request. - The active stream reader is cancelled, whether you stop before response headers, before the first event, or after partial text has arrived.
- Whatever tokens have already arrived remain visible in the chat. Late events from the stopped request are ignored and cannot alter a newer response.
- The conversation is left in a consistent state. You can send a new message or export the conversation as-is.
See Known limitations: Agent Stop button for the current constraints.