From cebec2307506c050afeb76e904bf5ff10044bee0 Mon Sep 17 00:00:00 2001 From: "Dhanji R. Prasanna" Date: Fri, 16 Jan 2026 14:48:50 +0530 Subject: [PATCH] Fix duplicate response printing in interactive mode The response was being printed twice: once during streaming and again after task completion. Removed the redundant print_smart() call since streaming already displays the response in real-time. --- crates/g3-cli/src/task_execution.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/g3-cli/src/task_execution.rs b/crates/g3-cli/src/task_execution.rs index c028dbd..3de14ed 100644 --- a/crates/g3-cli/src/task_execution.rs +++ b/crates/g3-cli/src/task_execution.rs @@ -58,14 +58,11 @@ pub async fn execute_task_with_retry( }; match execution_result { - Ok(result) => { + Ok(_) => { if attempt > 1 { output.print(&format!("✅ Request succeeded after {} attempts", attempt)); } - // Only print response if it's not empty (streaming already displayed it) - if !result.response.trim().is_empty() { - output.print_smart(&result.response); - } + // Response was already displayed during streaming - don't print again return; } Err(e) => {