Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions codex-rs/core/src/thread_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ impl ThreadManager {
self.state.models_manager.list_models(config).await
}

pub async fn list_thread_ids(&self) -> CodexResult<Vec<ThreadId>> {
self.state.threads.read().await.iter().map(|(id, _)| id).collect()
}

pub async fn get_thread(&self, thread_id: ThreadId) -> CodexResult<Arc<CodexThread>> {
self.state.get_thread(thread_id).await
}
Expand Down
Loading