Abort kills claude_cli process group and cancels pending plan/ask dialogs
- claude -p runs in its own process group; dropping the stream kills the group (its Bash children survived kill_on_drop) - reader task stops when the stream is dropped - exit_plan/AskUserQuestion race the question against abort - TUI clears choose/doc/perm popups when a run ends - fix abort_during_tool_round test (tu() always built echo calls, slow never ran)
This commit is contained in:
1 parent
7e428dfb39
commit
fd0b0a77dc
4 files changed
+105
-10
No files matched your search
@@ -621,6 +621,9 @@ pub async fn run(setup: Setup) -> std::io::Result<()> {
|
||||
}
|
||||
Ui::Done(r) => {
|
||||
app.busy = false;
|
||||
app.choose = None;
|
||||
app.doc = None;
|
||||
app.perm = None;
|
||||
{
|
||||
let mut a = agent.lock().await;
|
||||
if let Some(sw) = app.sw.end_turn(&mut a) {
|
||||
|
||||
Reference in new issue
Block a user