From dd1c9ff41a0384d90b7adb4c3537978ba4e832ee Mon Sep 17 00:00:00 2001 From: starr-openai Date: Wed, 6 May 2026 14:39:01 -0700 Subject: [PATCH] Box retained stdio transport guard Avoid the Windows clippy large-enum-variant failure while preserving the retained stdio child cleanup guard behavior. Co-authored-by: Codex --- codex-rs/exec-server/src/connection.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/codex-rs/exec-server/src/connection.rs b/codex-rs/exec-server/src/connection.rs index e672d1ae38..bf3d28a833 100644 --- a/codex-rs/exec-server/src/connection.rs +++ b/codex-rs/exec-server/src/connection.rs @@ -26,15 +26,17 @@ pub(crate) enum JsonRpcConnectionEvent { pub(crate) enum JsonRpcTransport { Plain, - Stdio { _transport: StdioTransport }, + Stdio { + _transport: Box, + }, } impl JsonRpcTransport { fn from_child_process(child_process: Child) -> Self { Self::Stdio { - _transport: StdioTransport { + _transport: Box::new(StdioTransport { child_process: Some(child_process), - }, + }), } } }