mirror of
https://github.com/openai/codex.git
synced 2026-11-16 06:54:36 +00:00
Forward model confirmation policies to actor MCP tools (#41072)
## What changed - Add optional Browser Use and Computer Use confirmation-policy Markdown to model catalog messages. - Send the configured documents verbatim in `openai/confirmation_policies` metadata for `node_repl` and `cua_repl` tool calls. Send an empty object when the issuing model has no policies so runtime defaults are cleared. - Use the issuing step's model snapshot across approval waits, and omit the metadata for other MCP servers and Guardian sessions. ## Testing - Cover policy serialization, configuration overrides, model changes, approval waits, partial or empty policies, eligible server filtering, and Guardian exclusion. GitOrigin-RevId: 038c4c262a31fc71986e4a2a947fe9bcbd407acc
This commit is contained in:
1 parent
218a3e50ae
commit
b592a0bfed
16 files changed
+434
-7
No files matched your search
@@ -1921,6 +1921,7 @@ mod tests {
|
||||
permissions: None,
|
||||
multi_agent: None,
|
||||
token_budget: None,
|
||||
confirmation_policies: None,
|
||||
guardian_v2: None,
|
||||
};
|
||||
|
||||
@@ -1960,6 +1961,7 @@ mod tests {
|
||||
permissions: None,
|
||||
multi_agent: None,
|
||||
token_budget: None,
|
||||
confirmation_policies: None,
|
||||
guardian_v2: None,
|
||||
};
|
||||
|
||||
@@ -2007,6 +2009,7 @@ mod tests {
|
||||
permissions: None,
|
||||
multi_agent: None,
|
||||
token_budget: None,
|
||||
confirmation_policies: None,
|
||||
guardian_v2: None,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user