Files
codex/codex-rs/core-plugins
jif 045a11fe2c Respect sandbox read restrictions in remote plugin approvals (#64369)
## Why

Remote command approvals could attribute a command to a plugin by reading
a script that the turn's filesystem permissions denied access to.

## What changed

Use the remote environment's sandbox policy and stored permission grants
when resolving script paths, checking file metadata, and reading scripts
for approval attribution. If the lookup is denied, the approval prompt
still appears without plugin attribution.

## Testing

Add a regression test that checks for an approval prompt without a plugin
ID or script path when either the environment policy or a stored turn
grant denies reads of an otherwise matching plugin script.

GitOrigin-RevId: 123fd72c14cd31121d271fa800f005d3fc41a366
2026-11-27 19:09:58 +00:00
..