mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
queue only when task is working (#9558)
This commit is contained in:
committed by
GitHub
Unverified
parent
de4980d2ac
commit
fbd8afad81
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user