From 942a674042e46ac31207e03591a046f098259e46 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Tue, 5 May 2026 13:33:53 -0700 Subject: [PATCH] Name retained exec-server connection field Co-authored-by: Codex --- codex-rs/exec-server/src/client.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/codex-rs/exec-server/src/client.rs b/codex-rs/exec-server/src/client.rs index 9b845d3611..675e4e1b4d 100644 --- a/codex-rs/exec-server/src/client.rs +++ b/codex-rs/exec-server/src/client.rs @@ -154,7 +154,8 @@ pub(crate) struct Session { struct Inner { // Keep the underlying transport connection alive and drop it before the RPC // client starts tearing down its channel/task handles. - _connection: JsonRpcConnection, + #[allow(dead_code)] + connection: JsonRpcConnection, client: RpcClient, // The remote transport delivers one shared notification stream for every // process on the connection. Keep a local process_id -> session registry so @@ -465,7 +466,7 @@ impl ExecServerClient { }); Inner { - _connection: connection, + connection, client: rpc_client, sessions: ArcSwap::from_pointee(HashMap::new()), sessions_write_lock: Mutex::new(()),