diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rs index 4595713f1c..c285fed486 100644 --- a/codex-rs/tui/src/bottom_pane/chat_composer.rs +++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs @@ -2855,7 +2855,7 @@ impl ChatComposer { return None; } if let Some(command) = self.find_service_tier_command(name) { - self.stage_slash_command_history(); + self.stage_slash_command_history_text(self.textarea.text().trim().to_string()); self.textarea.set_text_clearing_elements(""); self.is_bash_mode = false; return Some(InputResult::ServiceTierCommand(command));