agent2: Use correct completion intent when generating summary (#36573)

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2025-08-20 12:03:35 +02:00 committed by GitHub
parent 0a80209c5e
commit a32a264508
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1541,7 +1541,7 @@ impl Thread {
return Task::ready(Err(anyhow!("No summarization model available")));
};
let mut request = LanguageModelRequest {
intent: Some(CompletionIntent::ThreadSummarization),
intent: Some(CompletionIntent::ThreadContextSummarization),
temperature: AgentSettings::temperature_for_model(&model, cx),
..Default::default()
};