agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

[Feature Request] Add ability to interrupt/stop an active chat response

Open JaguarsMark2 opened this issue 8 months ago • 7 comments

Problem

Once a chat response starts in Agent Zero's UI, there is currently no way to stop it mid-execution. This is a significant usability and safety issue.

  • Ctrl+C does nothing
  • Escape does nothing
  • There is no stop/interrupt button in the UI
  • Clearing context does not halt the running process

The only way to stop an agent that is looping, stuck, or running an undesired action is to restart the Docker container entirely, which is completely disruptive and unacceptable in a production workflow.

Expected Behaviour

A stop/interrupt button should be visible and active whenever the agent is processing. Clicking it should:

  1. Immediately halt the current agent response and any tool calls in progress
  2. Return the UI to an idle/ready state without requiring a container restart
  3. Preserve the conversation history up to the point of interruption

Why This Matters

Without an interrupt mechanism, users have no recourse if the agent:

  • Enters a loop
  • Makes an unintended tool call
  • Takes longer than expected
  • Goes in the wrong direction

This is standard behaviour in every major AI chat interface (ChatGPT, Claude, etc.) and should be considered a baseline requirement, not an enhancement.

Environment

  • Agent Zero running in Docker
  • Browser-based UI

JaguarsMark2 avatar Mar 05 '26 13:03 JaguarsMark2

+1 UP

facemookdz-tech avatar Mar 05 '26 23:03 facemookdz-tech

+1 UP Currntly I'm using Clear Chat

crazy2705 avatar Mar 06 '26 07:03 crazy2705

+1

pakgrou-porg avatar Mar 06 '26 14:03 pakgrou-porg

Problem

Once a chat response starts in Agent Zero's UI, there is currently no way to stop it mid-execution. This is a significant usability and safety issue.

  • Ctrl+C does nothing
  • Escape does nothing
  • There is no stop/interrupt button in the UI
  • Clearing context does not halt the running process

The only way to stop an agent that is looping, stuck, or running an undesired action is to restart the Docker container entirely, which is completely disruptive and unacceptable in a production workflow.

Expected Behaviour

A stop/interrupt button should be visible and active whenever the agent is processing. Clicking it should:

  1. Immediately halt the current agent response and any tool calls in progress
  2. Return the UI to an idle/ready state without requiring a container restart
  3. Preserve the conversation history up to the point of interruption

Why This Matters

Without an interrupt mechanism, users have no recourse if the agent:

  • Enters a loop
  • Makes an unintended tool call
  • Takes longer than expected
  • Goes in the wrong direction

This is standard behaviour in every major AI chat interface (ChatGPT, Claude, etc.) and should be considered a baseline requirement, not an enhancement.

Environment

  • Agent Zero running in Docker
  • Browser-based UI

As an Example Where I have now rebuilt Twice and I am Hung - No Answer on Discord Help/No response from Admins:

!ask - Agent-Zero Hung - Hi, can anyone assist? I lost my version 9.8 yesterday when it hung, together with all three of my Docker Containers:( I have all of the data persisted on my Local Mac Folder:) Today I rebuilt Agent-Zero on 9.8.2, and the related PostgreSQL Container (data all local), and continued with building my app from a "Design-OS" developed Blueprint. I have a hung 9.8.2!! What steps should I take, if any, to save (not sure anything material was progressed) and more importantly, what steps should I action to stop the hung position and get Agent-Zero working again - preferably without all the recovery work being repeated that was done this morning. Then any thoughts on finding the likely cause? I am running a MacBook Pro M1, pretty much full house, and things have worked flawlessly for 10 days with much done this week in particular - so no known laptop hardware, software, or OS issues? Kind regards Gavin - Update = Clicking on the Restart Left Pancake Menu Option does nothing - clicking on the Resulting Blue Confirm generates the following text response on the screen "Failed to load modal content: Failed to fetch"??

GavinWehlburg avatar Mar 07 '26 03:03 GavinWehlburg

+1

I had a webagent that kept going for hours today and I had to tell it to stop. An Esc function would really help!

stoeff99 avatar Mar 15 '26 17:03 stoeff99

There is a "Pause Agent" button at the bottom-left of each chat. Did you try that?

sumer-man avatar Mar 18 '26 20:03 sumer-man

Closing due to inactivity of 90 days.

github-actions[bot] avatar Jun 17 '26 04:06 github-actions[bot]