mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why When `TMPDIR` is relative, `environment/info` resolves it against the executor's working directory. The filesystem helper starts at the filesystem root, so its `:tmpdir` rules could apply to a different directory. ## What changed Use the executor's resolved temporary directory when binding `:tmpdir` rules. Reject requests whose supplied temporary directories no longer match the executor, and preserve the helper's original `TMPDIR` for scratch files. ## Testing Add a Linux integration test covering `:tmpdir` read grants and denials, rejection of stale temporary directory information after the executor's working directory moves, and a write without a `:tmpdir` rule. GitOrigin-RevId: 6772c17251500dae3f6b0a2b17ee95955289e89b