From ed5f688c87d587173ea2e0159c3b5f1cbc0b528f Mon Sep 17 00:00:00 2001 From: pap Date: Thu, 15 Jan 2026 17:50:07 +0000 Subject: [PATCH] better comment --- codex-rs/tui/src/bottom_pane/chat_composer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rs index bd3cf762be..d2ec8e82b9 100644 --- a/codex-rs/tui/src/bottom_pane/chat_composer.rs +++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs @@ -352,7 +352,7 @@ impl ChatComposer { self.textarea.insert_element(&placeholder); self.pending_pastes.push((placeholder, pasted)); } else if char_count > 1 - // Keep shell commands like `!open /path/to.png` intact; users expect the raw path. + // Keep shell commands like `!open /path/to.png` intact (not replacing with [Image]) so they can be run in shell && !self.is_user_shell_command_input() && self.handle_paste_image_path(pasted.clone()) {