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
This commit is contained in:
viyatb-oai
2026-04-10 09:05:02 -07:00
co-authored by Codex noreply@openai.com
parent ec5a7fd714
commit 83b54acd91
@@ -5601,7 +5601,7 @@ impl CodexMessageProcessor {
}
async fn unload_thread_without_subscribers(
&mut self,
&self,
thread_id: ThreadId,
thread: Arc<CodexThread>,
) {