From 968152a0f7b5920fa6285d411f63da19c6756f90 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Thu, 9 Jul 2026 14:48:02 +0100 Subject: [PATCH] Document stdio frame limit parity --- codex-rs/exec-server/src/connection.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/exec-server/src/connection.rs b/codex-rs/exec-server/src/connection.rs index 01b3a40cc9..29c553b5d2 100644 --- a/codex-rs/exec-server/src/connection.rs +++ b/codex-rs/exec-server/src/connection.rs @@ -30,6 +30,8 @@ use tokio::io::BufReader; use tokio::io::BufWriter; pub(crate) const CHANNEL_CAPACITY: usize = 128; +// Match the existing serialized JSON-RPC message ceiling used by Noise and +// WebSocket transports so stdio has the same per-message bound. const MAX_STDIO_JSONRPC_MESSAGE_LEN: usize = 64 * 1024 * 1024; const STDIO_TERMINATION_GRACE_PERIOD: Duration = Duration::from_secs(2); #[cfg(test)]