agent2: Remove model param from Thread::send method (#35936)

It instead uses the currently selected model

Release Notes:

- N/A
This commit is contained in:
Ben Brandt 2025-08-09 23:40:44 +02:00 committed by GitHub
parent ce39644cbd
commit 5901aec40a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 22 deletions

View file

@ -491,8 +491,7 @@ impl acp_thread::AgentConnection for NativeAgentConnection {
// Send to thread
log::info!("Sending message to thread with model: {:?}", model.name());
let mut response_stream =
thread.update(cx, |thread, cx| thread.send(model, message, cx))?;
let mut response_stream = thread.update(cx, |thread, cx| thread.send(message, cx))?;
// Handle response stream and forward to session.acp_thread
while let Some(result) = response_stream.next().await {