From 7edc99070513d2d077e37cc2f94052354d2323d2 Mon Sep 17 00:00:00 2001 From: kevin zhao Date: Mon, 1 Dec 2025 19:16:25 -0500 Subject: [PATCH] improve messaging --- codex-rs/core/src/exec_policy.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;