Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui: Search models only by name (#44984)
Danilo Leal90d7ccfd5d0d
diff --git a/crates/agent_ui/src/acp/model_selector.rs b/crates/agent_ui/src/acp/model_selector.rsindex f9710ad9b3a..959e0e72f38 100644--- a/crates/agent_ui/src/acp/model_selector.rs+++ b/crates/agent_ui/src/acp/model_selector.rs@@ -403,9 +403,7 @@ async fn fuzzy_search(let candidates = model_list.iter().enumerate()- .map(|(ix, model)| {- StringMatchCandidate::new(ix, &format!("{}/{}", model.id, model.name))- })+ .map(|(ix, model)| StringMatchCandidate::new(ix, model.name.as_ref())).collect::<Vec<_>>();let mut matches = match_strings(&candidates,