mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
chore: add list thread ids on manager (#8855)
This commit is contained in:
committed by
GitHub
Unverified
parent
0f8bb4579b
commit
8a0c2e5841
@@ -132,6 +132,10 @@ impl ThreadManager {
|
||||
self.state.models_manager.list_models(config).await
|
||||
}
|
||||
|
||||
pub async fn list_thread_ids(&self) -> Vec<ThreadId> {
|
||||
self.state.threads.read().await.keys().copied().collect()
|
||||
}
|
||||
|
||||
pub async fn get_thread(&self, thread_id: ThreadId) -> CodexResult<Arc<CodexThread>> {
|
||||
self.state.get_thread(thread_id).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user