From b424ca93aba69ca97c3e22740810fece39cb83b7 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Thu, 16 Oct 2025 15:28:16 +0100 Subject: [PATCH] Fix --- codex-rs/cli/src/infty/progress.rs | 2 +- codex-rs/codex-infty/src/orchestrator.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/codex-rs/cli/src/infty/progress.rs b/codex-rs/cli/src/infty/progress.rs index 1724c5d38d..0591cf68bf 100644 --- a/codex-rs/cli/src/infty/progress.rs +++ b/codex-rs/cli/src/infty/progress.rs @@ -106,7 +106,7 @@ impl ProgressReporter for TerminalProgressReporter { let mut lines: Vec = agent_msg .message .lines() - .map(|line| line.to_string()) + .map(std::string::ToString::to_string) .collect(); if lines.is_empty() { lines.push(String::new()); diff --git a/codex-rs/codex-infty/src/orchestrator.rs b/codex-rs/codex-infty/src/orchestrator.rs index a0edb13772..c6912119e1 100644 --- a/codex-rs/codex-infty/src/orchestrator.rs +++ b/codex-rs/codex-infty/src/orchestrator.rs @@ -231,7 +231,6 @@ impl InftyOrchestrator { if let Some(p) = self.progress_ref() { p.solver_event(&event.event.msg); } match &event.event.msg { EventMsg::AgentMessage(agent_msg) => { - println!(); // TODO drop if let Some(p) = self.progress_ref() { p.solver_agent_message(agent_msg); } if let Some(signal) = parse_solver_signal(&agent_msg.message) { state.waiting_for_signal = false; @@ -308,10 +307,10 @@ impl InftyOrchestrator { } } EventMsg::Error(error) => { - println!("Error: {:?}", error); + tracing::error!("Error: {:?}", error); } EventMsg::StreamError(error) => { - println!("Stream error: {:?}", error); + tracing::error!("Stream error: {:?}", error); } e => { tracing::info!("Unhandled event: {:?}", e); // todo move to trace @@ -386,6 +385,7 @@ impl InftyOrchestrator { Ok(()) } + #[allow(clippy::too_many_arguments)] async fn run_final_verification( &self, sessions: &mut RunSessions,