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
@@ -1140,7 +1140,18 @@ mod tests {
|
||||
async fn abort_during_tool_round_stops_it_and_answers_the_calls() {
|
||||
let p = Arc::new(Script(
|
||||
Mutex::new(vec![
|
||||
asst(vec![tu("1", "slow"), tu("2", "slow")]),
|
||||
asst(vec![
|
||||
ContentBlock::ToolUse {
|
||||
id: "1".into(),
|
||||
name: "slow".into(),
|
||||
input: json!({}),
|
||||
},
|
||||
ContentBlock::ToolUse {
|
||||
id: "2".into(),
|
||||
name: "slow".into(),
|
||||
input: json!({}),
|
||||
},
|
||||
]),
|
||||
asst(vec![ContentBlock::Text { text: "ok".into() }]),
|
||||
]),
|
||||
Mutex::new(vec![]),
|
||||
|
||||
Reference in new issue
Block a user