assistant_context: Fix thread_summary_model not getting used in Text Threads (#38859)

Closes https://github.com/zed-industries/zed/issues/37472

Release Notes:

- Fixed an issue in Text Threads where it was using `default_model` even
in case `thread_summary_model` was set.

---------

Signed-off-by: Umesh Yadav <git@umesh.dev>
This commit is contained in:
Umesh Yadav
2025-09-25 14:41:49 +02:00
committed by GitHub
parent f303a461c4
commit c627543b46
2 changed files with 7 additions and 8 deletions
@@ -2669,7 +2669,7 @@ impl AssistantContext {
}
pub fn summarize(&mut self, mut replace_old: bool, cx: &mut Context<Self>) {
let Some(model) = LanguageModelRegistry::read_global(cx).default_model() else {
let Some(model) = LanguageModelRegistry::read_global(cx).thread_summary_model() else {
return;
};