ESC key kills ALL background tasks/subagents - poor UX for parallel workflows
Status Open
Maintainer reply None cached
Activity 7 comments · opened Jan 27, 2026
Problem
When pressing ESC, it kills all running background tasks and subagents at once. This is problematic for workflows that involve multiple parallel agents.
Current behavior
- User starts multiple background tasks (e.g., 3 ally agents running in parallel)
- User accidentally presses ESC
- All 3 agents are killed immediately
Expected behavior
Either:
- ESC should only cancel the current foreground operation, not background tasks
- Or show a confirmation dialog: "You have 3 running tasks. Kill all? [y/N]"
- Or provide a way to selectively stop tasks (e.g.,
/tasks stop <id>)
Use case
I frequently run multiple ally agents in parallel for research/review tasks. One accidental ESC destroys all progress.
7 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
did some testing, this breaks in 2.1.16. in 2.1.15 the behaviour is fine.
this is very critical to my workflow but there are things in latest versions i want to try too, please have this get fixed soon
@ashwin-ant any chance you can look at this? i don't think this is intended
+1. it is critical and make claude code unusable!!!
same here esc not working
This is especially problematic if the main chat starts doing something wrong/pointless - ESC and the square stop button stops everything.
please fix, this is very frustrating. The claude app is the only app that works this way. Years of muscle memory means I accidentally kill all sub-agents many times per day. A CTRL+Enter to interrupt might fix it, since thats what I reach for and the ESC is the 2nd thing.