mirror of
https://github.com/openai/codex.git
synced 2026-04-30 17:36:40 +00:00
fix(protocol): approval policy never prompt (#11288)
This removes overly directed language about how the model should behave when it's in `approval_policy=never` mode. --------- Co-authored-by: Dylan Hurd <dylan.hurd@openai.com>
This commit is contained in:
@@ -551,9 +551,11 @@ async fn override_before_first_turn_emits_environment_context() -> anyhow::Resul
|
||||
})
|
||||
.collect();
|
||||
assert!(
|
||||
permissions_texts
|
||||
.iter()
|
||||
.any(|text| text.contains("`approval_policy` is `never`")),
|
||||
permissions_texts.iter().any(|text| {
|
||||
let lower = text.to_ascii_lowercase();
|
||||
(lower.contains("approval policy") || lower.contains("approval_policy"))
|
||||
&& lower.contains("never")
|
||||
}),
|
||||
"permissions message should reflect overridden approval policy: {permissions_texts:?}"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user