assistant2: Expose ActiveThread::thread via a getter (#23577)

This PR exposes the `thread` file on the `ActiveThread` via a getter
rather than exposing the field directly.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-01-23 16:54:16 -05:00 committed by GitHub
parent 52494f3fdf
commit ec91a8dc82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -432,7 +432,7 @@ impl AssistantPanel {
}
pub(crate) fn active_thread(&self, cx: &AppContext) -> Model<Thread> {
self.thread.read(cx).thread.clone()
self.thread.read(cx).thread().clone()
}
pub(crate) fn delete_thread(&mut self, thread_id: &ThreadId, cx: &mut ViewContext<Self>) {