can interrupt now

This commit is contained in:
Michael Neale
2025-10-29 13:29:03 +11:00
parent 6cfa1e225c
commit aa4a0267ea
2 changed files with 16 additions and 9 deletions

View File

@@ -679,15 +679,22 @@ async fn run_accumulative_mode(
.await?;
// Run autonomous mode with the accumulated requirements
match run_autonomous(
let autonomous_result = tokio::select! {
result = run_autonomous(
agent,
project,
cli.show_prompt,
cli.show_code,
cli.max_turns,
cli.quiet,
)
.await
) => result,
_ = tokio::signal::ctrl_c() => {
output.print("\n⚠️ Autonomous run cancelled by user (Ctrl+C)");
Ok(())
}
};
match autonomous_result
{
Ok(_) => {
output.print("");