mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why MCP elicitation reviews used turn-start context, which could omit remote environments that became ready before the tool invocation and use stale environment permissions. ## What changed Capture the issuing step's Guardian review context with each live MCP invocation and reuse it for elicitation reviews. Fall back to turn context when no matching live invocation is available, and preserve the captured context for in-flight actions. ## Testing Extend the deferred-executor regression test to cover MCP elicitations, checking that Guardian receives the newly ready remote environment and its denied paths, excludes stale local denied paths, and returns the denial to the parent model. GitOrigin-RevId: 0cc58b8f30543a9af87d53e1a90f574a8e6a2f84