mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
## Why The filesystem context sent to the model repeats the same generated read-only metadata entries under each writable path. ## What changed Add the opt-in `features.compact_filesystem_context` flag. For matching workspace-write profiles with multiple writable paths, list workspace roots and other writable paths separately, then state the shared read-only rule for `.git`, `.agents`, `.codex`, and `.aws` once. Keep temporary-directory write grants explicit and use the full listing for profiles with rules the summary cannot represent. ## Testing Cover compact rendering and fallback for explicit metadata reads or Windows paths with different casing. Snapshot shared and per-environment context across two turns to verify that unchanged permissions carry forward. GitOrigin-RevId: 4e9f36a054a96f06c9e5d0b3882148b132233e4f