mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## Why Remote MCP environment filtering could drop `SystemDrive` and `LocalAppData`. Explicit overrides also need Windows-aware merging to replace inherited variables with differently cased names. ## What changed - Preserve `SYSTEMDRIVE` and `LOCALAPPDATA` when remote environment variables activate the allowlist. - Apply explicit environment overrides through the executor environment policy, while retaining the final overlay for variables excluded by the allowlist. ## Testing Extend environment-policy tests to cover the additional Windows variables, overrides with differently cased names, and the final overlay used by older executors. GitOrigin-RevId: 36df69117f248536e47cf7e1d855b99a138fe698