mirror of
https://github.com/openai/codex.git
synced 2026-10-29 19:08:43 +00:00
## Why Guardian's `write_stdin` approval requests lacked the command used to launch the receiving terminal, leaving reviews without that context. ## What changed - Carry `original_command` from the terminal's launch command into the approval request and Guardian action JSON. This describes the original launch, not the terminal's current state. - Exclude `original_command` from the 8,000-byte stdin approval size check so launch context does not consume the budget for input, permission details, and the approval reason. Launch context remains subject to Guardian's normal request budget. ## Testing Extend serialization coverage to check `original_command` and the strict stdin review integration test to verify that a launch command longer than 8,000 bytes reaches Guardian intact. GitOrigin-RevId: cc765a6bf80d080baf94c959eafa6227b2889e1f