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:
@@ -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 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<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
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -125,6 +125,7 @@ pub struct AnthropicProvider {
|
||||
model: String,
|
||||
max_tokens: u32,
|
||||
temperature: f32,
|
||||
#[allow(dead_code)]
|
||||
cache_config: Option<String>,
|
||||
enable_1m_context: bool,
|
||||
thinking_budget_tokens: Option<u32>,
|
||||
|
||||
Reference in New Issue
Block a user