diff --git a/codex-rs/core/src/exec_policy.rs b/codex-rs/core/src/exec_policy.rs index c57718bdc8..9c9d5c2430 100644 --- a/codex-rs/core/src/exec_policy.rs +++ b/codex-rs/core/src/exec_policy.rs @@ -130,9 +130,7 @@ pub(crate) async fn append_allow_prefix_rule_and_update( Ok(()) } -/// Return an allow-prefix option when we are prompting solely due to heuristics; -/// any rule-driven prompt suppresses the opt-in. Only surfaced when execpolicy -/// feature is enabled. +/// Return an allow-prefix option when a command needs approval and execpolicy did not drive the decision fn allow_prefix_if_applicable(evaluation: &Evaluation, features: &Features) -> Option> { if !features.enabled(Feature::ExecPolicy) { return None;