Files
codex/codex-rs/guardian-context
ioanbudea-OAI 7d60863a4a Include direct MCP screenshots in synchronous Guardian reviews (#64811)
## Why

Synchronous Guardian reviews could receive screenshots from Code Mode calls,
but missed screenshots returned by direct calls to the same REPL connectors.

## What changed

Capture screenshots from accepted direct `node_repl` and `cua_repl` MCP
results when multimodal review evidence is enabled. Include them alongside
Code Mode evidence in call order, with separate retention budgets.

When the synchronous review prompt exceeds its fixed image budget, retry with
only the last image in prompt order and keep it if the prompt fits.

## Testing

Add coverage for screenshot delivery to synchronous permission reviews,
including text-only mode and image budget overflow. Verify that direct
screenshots preserve call order and do not consume the Code Mode retention
budget.

GitOrigin-RevId: e74ee6c5578225efb284c1ca38494377a1d0762e
2026-11-30 21:34:02 +00:00
..