diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rs index d78f6d6a32..9380034dc3 100644 --- a/codex-rs/tui/src/bottom_pane/chat_composer.rs +++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs @@ -210,11 +210,7 @@ impl ChatComposer { Ok((w, h)) => { tracing::info!("OK: {pasted}"); let format_label = get_img_format_label(path_buf.clone()); - if self.attach_image(path_buf, w, h, &format_label) { - self.pending_pastes.push(("image".into(), "image".into())); - return true; - } - false + self.attach_image(path_buf, w, h, &format_label) } Err(err) => { tracing::info!("ERR: {err}");