From 4daf0300e16a40a4d1499968a02f4dba2bb8a5a0 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Thu, 19 Mar 2026 08:40:40 -0600 Subject: [PATCH] codex: fix clippy regression in human output (#15106) --- .../exec/src/event_processor_with_human_output.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/codex-rs/exec/src/event_processor_with_human_output.rs b/codex-rs/exec/src/event_processor_with_human_output.rs index 8173be08f2..8cc8fecd12 100644 --- a/codex-rs/exec/src/event_processor_with_human_output.rs +++ b/codex-rs/exec/src/event_processor_with_human_output.rs @@ -107,13 +107,12 @@ impl EventProcessorWithHumanOutput { ThreadItem::Reasoning { summary, content, .. } => { - if self.show_agent_reasoning { - if let Some(text) = + if self.show_agent_reasoning + && let Some(text) = reasoning_text(&summary, &content, self.show_raw_agent_reasoning) - && !text.trim().is_empty() - { - eprintln!("{}", text.style(self.dimmed)); - } + && !text.trim().is_empty() + { + eprintln!("{}", text.style(self.dimmed)); } } ThreadItem::CommandExecution {