mirror of
https://github.com/openai/codex.git
synced 2026-10-25 15:56:38 +00:00
## Why App tool file arguments could read and upload files without applying the active filesystem sandbox policy. ## What changed - Apply the effective filesystem policy, including session and turn grants, when reading metadata and streaming files for upload. - Reject uploads before contacting the files endpoint when the selected path is denied. - Report an error when the executor cannot provide sandboxed file streaming for a restricted policy. ## Testing Added integration coverage showing that restricted policies allow permitted files and reject denied files before upload. GitOrigin-RevId: 63b239c5066dcb9d18b5050089c659fb2a784909