Abort reaches all running subagents, incl. background-continued ones

This commit is contained in:
hermes committed 2026-11-14 12:47:10 +00:00
1 parent 742f2a124a
commit c849463805
2 files changed
+72 -12

No files matched your search

+3
View File
@@ -1241,6 +1241,8 @@ fn on_key(app: &mut App, k: KeyEvent, abort: &AbortHandle) -> Option<String> {
if app.busy {
app.queue.clear();
abort.abort();
} else if app.state.subs.any_running() {
app.state.subs.abort_all();
} else if app.ed.buf.is_empty() {
app.quit = true;
} else {
@@ -1254,6 +1256,7 @@ fn on_key(app: &mut App, k: KeyEvent, abort: &AbortHandle) -> Option<String> {
app.queue.clear();
abort.abort();
}
KeyCode::Esc if app.state.subs.any_running() => app.state.subs.abort_all(),
KeyCode::Char('o') if ctrl => app.expanded = !app.expanded,
KeyCode::Esc if app.panel.is_some() => app.panel = None,
KeyCode::Char('j') if ctrl => app.ed.insert("\n"),