codex: fix clippy regression in human output (#15106)

This commit is contained in:
Eric Traut
2026-03-19 08:40:40 -06:00
parent e616e4b28b
commit 4daf0300e1

View File

@@ -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 {