From 98f4220544c7e6395580238f07c740d277e438b6 Mon Sep 17 00:00:00 2001 From: Dhanji Prasanna Date: Mon, 27 Oct 2025 13:48:46 +1100 Subject: [PATCH] Fix duplicate dump at end --- crates/g3-core/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/g3-core/src/lib.rs b/crates/g3-core/src/lib.rs index 4f2ab08..bad045f 100644 --- a/crates/g3-core/src/lib.rs +++ b/crates/g3-core/src/lib.rs @@ -2727,7 +2727,8 @@ Template: // Check if this was a final_output tool call if tool_call.tool == "final_output" { - full_response.push_str(final_display_content); + // Don't add final_display_content here - it was already added before tool execution + // Adding it again would duplicate the output if let Some(summary) = tool_call.args.get("summary") { if let Some(summary_str) = summary.as_str() { full_response.push_str(&format!("\n\n{}", summary_str));