From 60e72a6ed54d252c9517e253976539bb3409fdc4 Mon Sep 17 00:00:00 2001 From: fettpl <38704082+fettpl@users.noreply.github.com> Date: Mon, 16 Feb 2026 16:57:00 +0100 Subject: [PATCH] fix(main): remove duplicate ModelCommands enum definition A duplicate ModelCommands enum was introduced in a recent merge, causing E0119/E0428 compile errors on CI (Rust 1.92). Co-Authored-By: Claude Opus 4.6 --- src/main.rs | 14 -------------- src/tools/git_operations.rs | 1 - 2 files changed, 15 deletions(-) diff --git a/src/main.rs b/src/main.rs index a5c17f4..3253594 100644 --- a/src/main.rs +++ b/src/main.rs @@ -272,20 +272,6 @@ enum ModelCommands { }, } -#[derive(Subcommand, Debug)] -enum ModelCommands { - /// Refresh and cache provider models - Refresh { - /// Provider name (defaults to configured default provider) - #[arg(long)] - provider: Option, - - /// Force live refresh and ignore fresh cache - #[arg(long)] - force: bool, - }, -} - #[derive(Subcommand, Debug)] enum ChannelCommands { /// List configured channels diff --git a/src/tools/git_operations.rs b/src/tools/git_operations.rs index fc4b4d2..e20113a 100644 --- a/src/tools/git_operations.rs +++ b/src/tools/git_operations.rs @@ -555,7 +555,6 @@ impl Tool for GitOperationsTool { mod tests { use super::*; use crate::security::SecurityPolicy; - use std::path::Path; use tempfile::TempDir; fn test_tool(dir: &std::path::Path) -> GitOperationsTool {