mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## Why Reducing a heredoc shell script to its inner executable lets a prefix rule for that executable apply to the entire wrapper, even though the full script was not parsed as a plain command. ## What changed - Fall back to evaluating the complete shell wrapper when plain-command parsing fails, including for heredoc scripts. - Keep these commands sandboxed when only the inner executable is allowed. - Propose the full wrapper as the exec policy amendment when approval is needed. ## Testing Added exec policy, Unix escalation, and approval scenario coverage for unparsed and heredoc shell wrappers. GitOrigin-RevId: 8f65133acb6b7c638263917e1d9137e45990772c