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), - }, + }), } } }