mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why A cold resume can save a read-only profile with concrete read paths derived from the current configuration. On the next cold resume, those paths make the saved profile ineligible for direct reuse, so the thread can fall back to a writable default. ## What changed When restoring a saved read-only profile with restricted network access that cannot be reused directly, rebuild its read grants from the current configuration while keeping writes disabled and network access restricted. Preserve read denials from both the saved profile and the current configuration. For deny globs, use the larger scan depth when both contributing policies are bounded and keep the scan unbounded if either contributing policy is unbounded. ## Testing Cover two consecutive cold resumes under a scoped writable default, and test that restoration respects the current read allowlist, preserves saved path and glob denials, merges glob scan depths, and drops the configured network proxy. GitOrigin-RevId: 04c91804e83d396402e1c8a985e4c3ff006f7e91