From 83b54acd91f148b9e5520789382fccf86a9bc789 Mon Sep 17 00:00:00 2001 From: viyatb-oai Date: Fri, 10 Apr 2026 09:05:02 -0700 Subject: [PATCH] fix(app-server): unload threads from shared processor Allow thread teardown to run from shared connection handlers by making unload_thread_without_subscribers take &self. The method only uses interior-mutability fields and cloned handles, so it does not need mutable access to the processor. Co-authored-by: Codex noreply@openai.com --- codex-rs/app-server/src/codex_message_processor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/app-server/src/codex_message_processor.rs b/codex-rs/app-server/src/codex_message_processor.rs index 2b2f888e5b..0674201350 100644 --- a/codex-rs/app-server/src/codex_message_processor.rs +++ b/codex-rs/app-server/src/codex_message_processor.rs @@ -5601,7 +5601,7 @@ impl CodexMessageProcessor { } async fn unload_thread_without_subscribers( - &mut self, + &self, thread_id: ThreadId, thread: Arc, ) {