From f490e1a5a61660b02976ddb3275088ae83f973eb Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 29 Jun 2026 09:25:45 -0400 Subject: [PATCH] Preserve slash commands with pending turns --- codex-rs/tui/src/chatwidget/slash_dispatch.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/codex-rs/tui/src/chatwidget/slash_dispatch.rs b/codex-rs/tui/src/chatwidget/slash_dispatch.rs index 03fa8dcb5c..70d22ef65b 100644 --- a/codex-rs/tui/src/chatwidget/slash_dispatch.rs +++ b/codex-rs/tui/src/chatwidget/slash_dispatch.rs @@ -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() {