From 262f535eb99edf8667ed8dbb07da45fd5a9fac64 Mon Sep 17 00:00:00 2001 From: Hunter B Date: Sat, 13 Jun 2026 13:01:31 -0700 Subject: [PATCH] fix(tui): clean model inventory fallback Use eager fallback selection in the model inventory default-model resolver so the TUI clippy gate remains warning-clean. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/tui/src/model_inventory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tui/src/model_inventory.rs b/crates/tui/src/model_inventory.rs index 2be59c3b..dddb17f7 100644 --- a/crates/tui/src/model_inventory.rs +++ b/crates/tui/src/model_inventory.rs @@ -177,7 +177,7 @@ fn provider_default_model(config: &Config, provider: ApiProvider) -> String { model_completion_names_for_provider(provider) .first() .copied() - .unwrap_or_else(|| match provider { + .unwrap_or(match provider { ApiProvider::Ollama => crate::config::DEFAULT_OLLAMA_MODEL, ApiProvider::Sglang => crate::config::DEFAULT_SGLANG_MODEL, ApiProvider::Vllm => crate::config::DEFAULT_VLLM_MODEL,