fix: map Noise identity generation errors

Co-authored-by: Codex noreply@openai.com
This commit is contained in:
viyatb-oai
2026-06-09 16:16:48 -07:00
co-authored by Codex noreply@openai.com
parent 1db84eb913
commit e7554548e0
+7 -3
View File
@@ -305,9 +305,13 @@ pub async fn run_remote_environment(
let processor = ConnectionProcessor::new(runtime_paths);
let protocol_state = match config.relay_protocol {
RemoteRelayProtocol::Legacy => RemoteRelayProtocolState::Legacy,
RemoteRelayProtocol::Noise => {
RemoteRelayProtocolState::Noise(NoiseChannelIdentity::generate()?)
}
RemoteRelayProtocol::Noise => RemoteRelayProtocolState::Noise(
NoiseChannelIdentity::generate().map_err(|error| {
ExecServerError::Protocol(format!(
"failed to generate Noise relay identity: {error}"
))
})?,
),
};
let mut backoff = Duration::from_secs(1);