From d6001588ce8a6183237dff11bc3b0deb32545661 Mon Sep 17 00:00:00 2001 From: Roy Han Date: Wed, 18 Mar 2026 17:55:00 -0700 Subject: [PATCH] patch network regression --- codex-rs/core/src/codex_tests.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/codex-rs/core/src/codex_tests.rs b/codex-rs/core/src/codex_tests.rs index de11b6af57..d0cf482d1a 100644 --- a/codex-rs/core/src/codex_tests.rs +++ b/codex-rs/core/src/codex_tests.rs @@ -4426,9 +4426,7 @@ fn review_decision_metadata_mapping_is_stable() { assert_eq!( ApprovalOutcomeMetadata::reviewed( &ReviewDecision::ApprovedExecpolicyAmendment { - proposed_execpolicy_amendment: codex_protocol::approvals::ExecPolicyAmendment::new( - vec!["echo".to_string(), "hi".to_string()], - ), + command: vec!["echo".to_string(), "hi".to_string()], }, codex_protocol::models::ApprovalSourceMetadata::User, ) @@ -4438,8 +4436,9 @@ fn review_decision_metadata_mapping_is_stable() { assert_eq!( ApprovalOutcomeMetadata::reviewed( &ReviewDecision::NetworkPolicyAmendment { - network_policy_amendment: codex_protocol::approvals::NetworkPolicyAmendment { - host: "example.com".to_string(), + network_policy_amendment: codex_protocol::protocol::NetworkPolicyRule { + protocol: codex_execpolicy::NetworkRuleProtocol::Https, + host_pattern: "example.com".to_string(), action: codex_protocol::protocol::NetworkPolicyRuleAction::Allow, }, }, @@ -4451,8 +4450,9 @@ fn review_decision_metadata_mapping_is_stable() { assert_eq!( ApprovalOutcomeMetadata::reviewed( &ReviewDecision::NetworkPolicyAmendment { - network_policy_amendment: codex_protocol::approvals::NetworkPolicyAmendment { - host: "example.com".to_string(), + network_policy_amendment: codex_protocol::protocol::NetworkPolicyRule { + protocol: codex_execpolicy::NetworkRuleProtocol::Https, + host_pattern: "example.com".to_string(), action: codex_protocol::protocol::NetworkPolicyRuleAction::Deny, }, },