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 require mutable access to the processor.

Co-authored-by: Codex noreply@openai.com
This commit is contained in:
viyatb-oai
2026-04-10 09:43:08 -07:00
co-authored by Codex noreply@openai.com
parent 361dae22b2
commit 20e063a18d
@@ -5601,7 +5601,7 @@ impl CodexMessageProcessor {
}
async fn unload_thread_without_subscribers(
&mut self,
&self,
thread_id: ThreadId,
thread: Arc<CodexThread>,
) {