From 4a113012427b80cb82f5aefd26d369a3d460b5ff Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Wed, 11 Mar 2026 17:06:42 -0700 Subject: fix: ctrl-c not exiting ai (#3256) Listen to signals as well as state ## Checks - [ ] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [ ] I have checked that there are no existing pull requests for the same thing --- crates/atuin-ai/src/commands/inline.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/atuin-ai/src/commands/inline.rs b/crates/atuin-ai/src/commands/inline.rs index df4a2d19..37e5ab81 100644 --- a/crates/atuin-ai/src/commands/inline.rs +++ b/crates/atuin-ai/src/commands/inline.rs @@ -633,8 +633,8 @@ async fn run_inline_tui( app.state.was_interrupted = false; // Reset the flag } - // Check exit condition - if app.state.should_exit { + // Check exit condition (includes Ctrl+C / SIGINT from event loop) + if app.state.should_exit || event_loop.is_shutdown() { break; } -- cgit v1.3.1