From c6fddefd83853b5b92335ef471510352bb0a455b Mon Sep 17 00:00:00 2001 From: jif-oai Date: Thu, 8 Jan 2026 10:53:58 +0000 Subject: [PATCH] chore: add list thread ids on manager (#8855) --- codex-rs/core/src/thread_manager.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codex-rs/core/src/thread_manager.rs b/codex-rs/core/src/thread_manager.rs index d82b242fe5..2ef96f9ad3 100644 --- a/codex-rs/core/src/thread_manager.rs +++ b/codex-rs/core/src/thread_manager.rs @@ -132,6 +132,10 @@ impl ThreadManager { self.state.models_manager.list_models(config).await } + pub async fn list_thread_ids(&self) -> Vec { + self.state.threads.read().await.keys().copied().collect() + } + pub async fn get_thread(&self, thread_id: ThreadId) -> CodexResult> { self.state.get_thread(thread_id).await }