mirror of
https://github.com/openai/codex.git
synced 2026-10-24 18:18:41 +00:00
Preserve slash commands with pending turns
This commit is contained in:
@@ -140,8 +140,9 @@ impl ChatWidget {
|
||||
|
||||
fn slash_command_blocked_by_active_task(&self, cmd: SlashCommand) -> bool {
|
||||
let foreground_work_active = self.bottom_pane.is_foreground_task_running()
|
||||
|| self.input_queue.user_turn_pending_start
|
||||
|| self.has_queued_follow_up_messages();
|
||||
|| (cmd == SlashCommand::Review
|
||||
&& (self.input_queue.user_turn_pending_start
|
||||
|| self.has_queued_follow_up_messages()));
|
||||
let blocked_by_task = if foreground_work_active {
|
||||
!cmd.available_during_task()
|
||||
} else if self.bottom_pane.is_mcp_startup_running() {
|
||||
|
||||
Reference in New Issue
Block a user