From 5f9bac19d0757f007ff6594c773948871be80233 Mon Sep 17 00:00:00 2001 From: viyatb-oai Date: Tue, 9 Jun 2026 17:11:26 -0700 Subject: [PATCH] fix: keep responder staging lint clean Co-authored-by: Codex noreply@openai.com --- codex-rs/exec-server/src/noise_channel.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/codex-rs/exec-server/src/noise_channel.rs b/codex-rs/exec-server/src/noise_channel.rs index 14a3d5de87..cf8bb660e0 100644 --- a/codex-rs/exec-server/src/noise_channel.rs +++ b/codex-rs/exec-server/src/noise_channel.rs @@ -193,12 +193,25 @@ impl InitiatorHandshake { } } +// This layer deliberately lands the responder state before the remote opt-in +// layer calls it. Bazel therefore sees the type as dead in this independently +// landable PR, while Cargo's test compilation exercises it and rejects an +// `expect(dead_code)` as unfulfilled. Keep the allowance on exactly the staged +// type and implementation; the next layer makes both production-reachable. +#[allow( + dead_code, + reason = "used by the remote Noise opt-in in the next stacked change" +)] pub(crate) struct PendingResponderHandshake { handshake: Handshake, initiator_public_key: NoiseChannelPublicKey, payload: Vec, } +#[allow( + dead_code, + reason = "used by the remote Noise opt-in in the next stacked change" +)] impl PendingResponderHandshake { /// Authenticate and parse the first IK message without completing it. ///