allUpdated 2026-05-24

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

  1. The frontend fires an AbortController signal, which terminates the active fetch() request.
  2. The SSE stream closes immediately. Whatever tokens have already arrived remain visible in the chat.
  3. The conversation is left in a consistent state. You can send a new message or export the conversation as-is.

Limitations

Related