agent2: New thread from summary (#36578)
Release Notes: - N/A --------- Co-authored-by: Agus Zubiaga <agus@zed.dev> Co-authored-by: Cole Miller <cole@zed.dev>
This commit is contained in:
parent
c5040bd0a4
commit
85865fc950
6 changed files with 131 additions and 19 deletions
|
@ -111,6 +111,10 @@ impl HistoryStore {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn thread_from_session_id(&self, session_id: &acp::SessionId) -> Option<&DbThreadMetadata> {
|
||||
self.threads.iter().find(|thread| &thread.id == session_id)
|
||||
}
|
||||
|
||||
pub fn delete_thread(
|
||||
&mut self,
|
||||
id: acp::SessionId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue