mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
Route MCP elicitations through the shared approval decision path (#43447)
## What changed - Use `decide_approval` for MCP elicitations, carrying the effective approval policy, reviewer, and synchronous-review requirement into the decision. - Preserve unsupported form and URL elicitations for user review. - Use `computer_use_review_required()` for review evidence, session policy, and turn metadata so model policy takes precedence over the legacy flag. - Derive strict-review notifications from each assessment's review reason. ## Testing Add coverage for model policy precedence, user and full-access modes, sensitive elicitations, independent code-mode and nested-tool policies, cached score reuse, and user review of unsupported elicitations. GitOrigin-RevId: d0a9c40572dca7b3dbf876230d2162b72728084d
This commit is contained in:
@@ -32,7 +32,7 @@ pub enum NodeReplReviewEvidenceMode {
|
||||
|
||||
pub(crate) fn node_repl_review_evidence_mode(turn: &TurnContext) -> NodeReplReviewEvidenceMode {
|
||||
let features = &turn.config.features;
|
||||
if turn.model_info().node_repl_auto_review_required
|
||||
if turn.model_info().computer_use_review_required()
|
||||
|| features.enabled(Feature::GuardianEnhancedNodeReplTranscripts)
|
||||
&& features.enabled(Feature::GuardianNodeReplTranscriptImages)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user