From fb24f1bb5c9d331b780a688f3f83597fab70f02a Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Wed, 3 Sep 2025 16:17:27 -0400 Subject: [PATCH] Fallback to default_model --- crates/assistant_context/src/assistant_context.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/assistant_context/src/assistant_context.rs b/crates/assistant_context/src/assistant_context.rs index b3e2dce38249a33c58ee55861455428cab23ab7f..3aabb79ec256fbc14c0fb39d90350d4ff77c1da7 100644 --- a/crates/assistant_context/src/assistant_context.rs +++ b/crates/assistant_context/src/assistant_context.rs @@ -2669,7 +2669,11 @@ impl AssistantContext { } pub fn summarize(&mut self, mut replace_old: bool, cx: &mut Context) { - let Some(model) = LanguageModelRegistry::read_global(cx).thread_summary_model() else { + let registry = LanguageModelRegistry::read_global(cx); + let Some(model) = registry + .thread_summary_model() + .or_else(|| registry.default_model()) + else { return; };