mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
Shutdown exec/run threads after completion
This commit is contained in:
@@ -1535,6 +1535,11 @@ impl CodexMessageProcessor {
|
||||
}
|
||||
.await;
|
||||
|
||||
if let Some(thread_for_shutdown) = self.thread_manager.remove_thread(&thread_id).await {
|
||||
// `exec/run` threads are one-shot; shut them down to avoid leaking resources.
|
||||
let _ = thread_for_shutdown.submit(Op::Shutdown).await;
|
||||
}
|
||||
|
||||
let thread_ids_to_skip_listener_attachment_for_cleanup =
|
||||
thread_ids_to_skip_listener_attachment.clone();
|
||||
tokio::spawn(async move {
|
||||
|
||||
Reference in New Issue
Block a user