Lightweight coding agent that runs in your terminal
Rust
Avoid cloning events in the app-server thread listener (#55283)
Charlie Marshb1fd48c48e2c
diff --git a/codex-rs/app-server/src/request_processors/thread_lifecycle.rs b/codex-rs/app-server/src/request_processors/thread_lifecycle.rsindex e6864c4dca..ab13ac6b0d 100644--- a/codex-rs/app-server/src/request_processors/thread_lifecycle.rs+++ b/codex-rs/app-server/src/request_processors/thread_lifecycle.rs@@ -375,8 +375,9 @@ pub(super) async fn ensure_listener_task_running(&outgoing_for_task, conversation_id,).await;}+ let is_shutdown_complete = matches!(event.msg, EventMsg::ShutdownComplete);apply_bespoke_event_handling(- event.clone(),+ event,conversation_id,conversation.clone(),thread_manager.clone(),@@ -385,7 +386,7 @@ pub(super) async fn ensure_listener_task_running(thread_watch_manager.clone(),).await;- if matches!(event.msg, EventMsg::ShutdownComplete)+ if is_shutdown_complete&& let Some(completion_tx) = thread_state.lock().await