diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2026-03-11 17:06:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-12 00:06:42 +0000 |
| commit | 4a113012427b80cb82f5aefd26d369a3d460b5ff (patch) | |
| tree | a87eda690b58703e55f10a91823ae0092b5d6ccd /crates/atuin-ai/src/commands/inline.rs | |
| parent | chore: update changelog (diff) | |
| download | atuin-4a113012427b80cb82f5aefd26d369a3d460b5ff.zip | |
fix: ctrl-c not exiting ai (#3256)
<!-- Thank you for making a PR! Bug fixes are always welcome, but if
you're adding a new feature or changing an existing one, we'd really
appreciate if you open an issue, post on the forum, or drop in on
Discord -->
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
Diffstat (limited to 'crates/atuin-ai/src/commands/inline.rs')
| -rw-r--r-- | crates/atuin-ai/src/commands/inline.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
