mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
feat: add forbidden_reason arg to prefix_rule() in *.rules
This commit is contained in:
@@ -97,7 +97,7 @@ async fn execpolicy_blocks_shell_invocation() -> Result<()> {
|
||||
|
||||
assert!(
|
||||
end.aggregated_output
|
||||
.contains("execpolicy forbids this command"),
|
||||
.contains("`echo blocked` rejected: policy forbids commands starting with `echo`"),
|
||||
"unexpected output: {}",
|
||||
end.aggregated_output
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user