Skip to content

Commit 6790908

Browse files
committed
codex: fix clippy regression in human output (#15106)
1 parent e0e4224 commit 6790908

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

codex-rs/exec/src/event_processor_with_human_output.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,12 @@ impl EventProcessorWithHumanOutput {
107107
ThreadItem::Reasoning {
108108
summary, content, ..
109109
} => {
110-
if self.show_agent_reasoning {
111-
if let Some(text) =
110+
if self.show_agent_reasoning
111+
&& let Some(text) =
112112
reasoning_text(&summary, &content, self.show_raw_agent_reasoning)
113-
&& !text.trim().is_empty()
114-
{
115-
eprintln!("{}", text.style(self.dimmed));
116-
}
113+
&& !text.trim().is_empty()
114+
{
115+
eprintln!("{}", text.style(self.dimmed));
117116
}
118117
}
119118
ThreadItem::CommandExecution {

0 commit comments

Comments
 (0)