queue only when task is working (#9558)

This commit is contained in:
Ahmed Ibrahim 2026-01-20 15:24:45 -08:00 committed by GitHub
parent de4980d2ac
commit fbd8afad81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1816,7 +1816,7 @@ impl ChatComposer {
modifiers: KeyModifiers::NONE,
kind: KeyEventKind::Press,
..
} => self.handle_submission(true),
} if self.is_task_running => self.handle_submission(true),
KeyEvent {
code: KeyCode::Enter,
modifiers: KeyModifiers::NONE,

View file

@ -1746,7 +1746,7 @@ impl ChatComposer {
modifiers: KeyModifiers::NONE,
kind: KeyEventKind::Press,
..
} => self.handle_submission(true),
} if self.is_task_running => self.handle_submission(true),
KeyEvent {
code: KeyCode::Enter,
modifiers: KeyModifiers::NONE,