mirror of
https://github.com/openai/codex.git
synced 2026-11-05 20:10:33 +00:00
## Why Direct Guardian review rejected recorded `exec_command` calls intercepted as `apply_patch`, even though normal execution could review those patches. ## What changed Share intercepted patch preparation between execution and direct review so Guardian assesses the verified patch and its approval requirement without applying it. ## Testing Extend the direct patch review scenario to cover `exec_command` heredocs alongside native `apply_patch` calls, asserting identical live and direct review inputs and no file writes after direct approval. GitOrigin-RevId: af62cf66a3f01c65a65c15cfad3fc9cdd1f2bf19