mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Make app tool hint defaults pessimistic for app policies (#17232)
## Summary - default missing app tool destructive/open-world hints to true for app policies - add regression tests for missing MCP annotations under restrictive app config
This commit is contained in:
1 parent
cfc23eee3d
commit
ea84537369
2 files changed
+58
-2
No files matched your search
@@ -680,10 +680,10 @@ fn app_tool_policy_from_apps_config(
|
||||
});
|
||||
let destructive_hint = annotations
|
||||
.and_then(|annotations| annotations.destructive_hint)
|
||||
.unwrap_or(false);
|
||||
.unwrap_or(true);
|
||||
let open_world_hint = annotations
|
||||
.and_then(|annotations| annotations.open_world_hint)
|
||||
.unwrap_or(false);
|
||||
.unwrap_or(true);
|
||||
let enabled =
|
||||
(destructive_enabled || !destructive_hint) && (open_world_enabled || !open_world_hint);
|
||||
|
||||
|
||||
Reference in new issue
Block a user