Skip to content

Comments

feat: add stop/cancel execution control for agents#5165

Open
ishaannk wants to merge 3 commits intoaden-hive:mainfrom
ishaannk:main
Open

feat: add stop/cancel execution control for agents#5165
ishaannk wants to merge 3 commits intoaden-hive:mainfrom
ishaannk:main

Conversation

@ishaannk
Copy link

Description

Brief description of the changes in this PR.

Closes #5118

Summary

Implemented stop and cancel execution control for agents.

Changes

  • Added stop execution mechanism
  • Added cancel execution handling
  • Ensured safe termination of running agents

Testing

  • Tested locally with multiple execution scenarios
  • Verified no unintended side effects

Screenshots

Screenshot from 2026-02-21 01-16-25

Add screenshots to demonstrate UI changes.

Copy link
Collaborator

@bryanadenhq bryanadenhq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: Please change the name from Stop to Pause to make sure that the naming convention is correct.

Other than this, it looks good!

@Antiarin
Copy link
Contributor

UI suggestion: dual-purpose send/stop button
Instead of a separate always-visible stop button, what about making it a send/stop toggle like ChatGPT and Claude's web UI do?

  • No text in input → button disabled
  • Text in input → shows "Send" / arrow icon, clicks to submit
  • Execution running → switches to "Stop" / square icon, clicks to pause
  • Matches the height of the input field, vertically centered

@ishaannk
Copy link
Author

Hi reviewers, I’ve addressed the requested changes and updated the implementation accordingly. Please take another look and let me know if any further modifications are needed. Thank you!

@ishaannk
Copy link
Author

Video.Pr.mp4

Will Improve UX! if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Stop / Cancel execution control for running agents

3 participants