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:
Fouad Matin
2026-02-10 09:27:46 -08:00
committed by GitHub
parent e704f488bd
commit 693bac1851
3 changed files with 7 additions and 5 deletions

View File

@@ -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:?}"
);