diff --git a/crates/g3-core/src/lib.rs b/crates/g3-core/src/lib.rs index 7db96dd..4101ac5 100644 --- a/crates/g3-core/src/lib.rs +++ b/crates/g3-core/src/lib.rs @@ -3434,7 +3434,7 @@ impl Agent { let mut any_tool_executed = false; // Track if ANY tool was executed across all iterations let mut auto_summary_attempts = 0; // Track auto-summary prompt attempts const MAX_AUTO_SUMMARY_ATTEMPTS: usize = 5; // Limit auto-summary retries (increased from 2 for better recovery) - let mut final_output_called = false; // Track if final_output was called + let final_output_called = false; // Track if final_output was called // Note: Session-level duplicate tracking was removed - we only prevent sequential duplicates (DUP IN CHUNK, DUP IN MSG) let mut turn_accumulated_usage: Option = None; // Track token usage for timing footer @@ -4092,7 +4092,6 @@ impl Agent { // Check if this was a final_output tool call if tool_call.tool == "final_output" { // Save context window BEFORE returning so the session log includes final_output - final_output_called = true; self.save_context_window("completed"); // The summary was already displayed via print_final_output diff --git a/crates/g3-planner/src/llm.rs b/crates/g3-planner/src/llm.rs index dfa0b4e..5ce8922 100644 --- a/crates/g3-planner/src/llm.rs +++ b/crates/g3-planner/src/llm.rs @@ -206,6 +206,7 @@ impl PlannerUiWriter { } /// Clear the current line and print a status message + #[allow(dead_code)] fn print_status_line(&self, message: &str) { // Print status message without overwriting previous content // Use println to ensure each status is on its own line diff --git a/crates/g3-providers/src/anthropic.rs b/crates/g3-providers/src/anthropic.rs index 2b26858..d864283 100644 --- a/crates/g3-providers/src/anthropic.rs +++ b/crates/g3-providers/src/anthropic.rs @@ -125,6 +125,7 @@ pub struct AnthropicProvider { model: String, max_tokens: u32, temperature: f32, + #[allow(dead_code)] cache_config: Option, enable_1m_context: bool, thinking_budget_tokens: Option,