openai/codex · error · NoiseChannelError
Noise channel transport failed
Error message
Noise channel transport failed: {0} What it means
NoiseChannelError::Transport wraps failures in the established Noise transport phase — a decrypt failed or framing broke mid-session, meaning the stream is corrupted or the session keys have diverged.
Solutions
- Tear down and re-establish the channel; the session is unrecoverable
- Check for stream truncation/reordering between the endpoints
- Inspect for a middleman altering bytes if it recurs
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at codex-rs/exec-server/src/noise_channel.rs:305 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/f4e0cdc39fb3cd3a.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/exec-server/src/noise_channel.rs:305
message: &'static str,
) -> Result<(), NoiseChannelError> {
if frame_len > MAX_MESSAGE_LEN {
return Err(NoiseChannelError::InvalidMessage(message));
}
Ok(())
}
#[derive(Debug, thiserror::Error)]
pub enum NoiseChannelError {
#[error("Noise channel key generation failed: {0}")]
KeyGeneration(String),
#[error("invalid Noise channel public key: {0}")]
InvalidPublicKey(&'static str),
#[error("invalid Noise channel message: {0}")]
InvalidMessage(&'static str),
#[error("Noise channel handshake failed: {0}")]
Handshake(String),
#[error("Noise channel transport failed: {0}")]
Transport(String),
}
impl From<clatter::error::HandshakeError> for NoiseChannelError {
fn from(error: clatter::error::HandshakeError) -> Self {
Self::Handshake(error.to_string())
}
}
impl From<clatter::error::TransportError> for NoiseChannelError {
fn from(error: clatter::error::TransportError) -> Self {
Self::Transport(error.to_string())
}
}
#[cfg(test)]
#[path = "noise_channel_tests.rs"]
mod tests;View on GitHub (pinned to 339751715c)