diff --git a/codex-rs/tui/src/chatwidget/slash_dispatch.rs b/codex-rs/tui/src/chatwidget/slash_dispatch.rs index 3be04e0788..658e9ca6eb 100644 --- a/codex-rs/tui/src/chatwidget/slash_dispatch.rs +++ b/codex-rs/tui/src/chatwidget/slash_dispatch.rs @@ -455,10 +455,11 @@ impl ChatWidget { /// path as well would make a single command appear twice during Up-arrow navigation. pub(super) fn dispatch_command_with_args( &mut self, - cmd: SlashCommandAction, + cmd: impl Into, args: String, text_elements: Vec, ) { + let cmd = cmd.into(); if !self.ensure_slash_command_allowed_in_side_conversation(&cmd) { return; }