From 38cb33339d2f1efcfc7d732ffef168ea49064934 Mon Sep 17 00:00:00 2001 From: Daniel Edrisian Date: Thu, 21 Aug 2025 15:49:07 -0700 Subject: [PATCH] rm unnecessary push --- codex-rs/tui/src/bottom_pane/chat_composer.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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}");