mirror of
https://github.com/openai/codex.git
synced 2026-11-16 06:54:36 +00:00
Require synchronous review for sensitive MCP actions (#41094)
## What changed - Recognize `codex_sensitive_action: true` on MCP approval elicitations. - Route marked actions to the synchronous Guardian reviewer instead of extension fast approval. Absent or false values preserve the existing path. - Cover ordinary and strict auto-review configurations, including marked, unmarked, and explicitly false metadata. GitOrigin-RevId: dce13d1696568ca81c8d2b08a7ef0d5f13e155bf
This commit is contained in:
1 parent
2c4a95736b
commit
89650c66f2
10 files changed
+240
-28
No files matched your search
@@ -631,6 +631,7 @@ impl Session {
|
||||
plugin_attribution_override: None,
|
||||
approval_request_source: GuardianApprovalRequestSource::MainTurn,
|
||||
external_cancel: Some(cancellation_token.clone()),
|
||||
require_synchronous_review: false,
|
||||
},
|
||||
);
|
||||
review.await.unwrap_or_else(|_| {
|
||||
@@ -653,6 +654,7 @@ impl Session {
|
||||
plugin_attribution_override: None,
|
||||
approval_request_source: GuardianApprovalRequestSource::MainTurn,
|
||||
external_cancel: Some(review_cancel),
|
||||
require_synchronous_review: false,
|
||||
},
|
||||
)
|
||||
.await
|
||||
|
||||
Reference in new issue
Block a user