fix: resolve compiler warnings across crates

- Remove unused assignment to final_output_called (returns immediately after)
- Mark cache_config field as #[allow(dead_code)] (reserved for future use)
- Mark print_status_line method as #[allow(dead_code)] (reserved for future use)
This commit is contained in:
Dhanji R. Prasanna
2025-12-25 18:47:22 +11:00
parent 258f9878ff
commit 3ece02ff31
3 changed files with 3 additions and 2 deletions

View File

@@ -3434,7 +3434,7 @@ impl<W: UiWriter> Agent<W> {
let mut any_tool_executed = false; // Track if ANY tool was executed across all iterations 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 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) 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) // Note: Session-level duplicate tracking was removed - we only prevent sequential duplicates (DUP IN CHUNK, DUP IN MSG)
let mut turn_accumulated_usage: Option<g3_providers::Usage> = None; // Track token usage for timing footer let mut turn_accumulated_usage: Option<g3_providers::Usage> = None; // Track token usage for timing footer
@@ -4092,7 +4092,6 @@ impl<W: UiWriter> Agent<W> {
// Check if this was a final_output tool call // Check if this was a final_output tool call
if tool_call.tool == "final_output" { if tool_call.tool == "final_output" {
// Save context window BEFORE returning so the session log includes final_output // Save context window BEFORE returning so the session log includes final_output
final_output_called = true;
self.save_context_window("completed"); self.save_context_window("completed");
// The summary was already displayed via print_final_output // The summary was already displayed via print_final_output

View File

@@ -206,6 +206,7 @@ impl PlannerUiWriter {
} }
/// Clear the current line and print a status message /// Clear the current line and print a status message
#[allow(dead_code)]
fn print_status_line(&self, message: &str) { fn print_status_line(&self, message: &str) {
// Print status message without overwriting previous content // Print status message without overwriting previous content
// Use println to ensure each status is on its own line // Use println to ensure each status is on its own line

View File

@@ -125,6 +125,7 @@ pub struct AnthropicProvider {
model: String, model: String,
max_tokens: u32, max_tokens: u32,
temperature: f32, temperature: f32,
#[allow(dead_code)]
cache_config: Option<String>, cache_config: Option<String>,
enable_1m_context: bool, enable_1m_context: bool,
thinking_budget_tokens: Option<u32>, thinking_budget_tokens: Option<u32>,