-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Send C-c to stop background process when stop button is clicked
When the stop button is clicked, it only changes the agent state but doesn't actually stop the running process. This causes the process to continue running in the background, preventing new commands from being executed. This fix modifies the AgentController to send a C-c command to stop any running process when transitioning to the STOPPED state. This ensures that background processes are properly terminated when the stop button is clicked. Added tests: - test_bash_session_stop_behavior: Shows the issue with background processes - test_bash_session_stop_command: Shows that C-c properly stops processes - test_agent_controller_stop: Verifies the fix works correctly
- Loading branch information
1 parent
efd0a6e
commit 5866e6c
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters