Skip to content

Preserve required Windows runtime variables for filesystem helpers - #47108

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/bab242dd59da59ac6e7f428436e1c139aadadfdd
Sep 21, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/bab242dd59da59ac6e7f428436e1c139aadadfdd

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Preserve required Windows runtime variables for filesystem helpers

Why

On Windows, MXC needs SystemDrive to resolve platform directories and
LOCALAPPDATA to create the sandboxed helper process. The helper environment
filter previously dropped both variables.

What changed

Allow SystemDrive and LOCALAPPDATA alongside PATH in the Windows helper
environment, using case-insensitive name matching.

Testing

Extend the Windows environment-filtering test to verify that mixed-case runtime
variable names are preserved while PATH_INJECTION and OPENAI_API_KEY remain
excluded.

…47108)

## Why

On Windows, MXC needs `SystemDrive` to resolve platform directories and
`LOCALAPPDATA` to create the sandboxed helper process. The helper environment
filter previously dropped both variables.

## What changed

Allow `SystemDrive` and `LOCALAPPDATA` alongside `PATH` in the Windows helper
environment, using case-insensitive name matching.

## Testing

Extend the Windows environment-filtering test to verify that mixed-case runtime
variable names are preserved while `PATH_INJECTION` and `OPENAI_API_KEY` remain
excluded.

GitOrigin-RevId: bab242dd59da59ac6e7f428436e1c139aadadfdd
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/bab242dd59da59ac6e7f428436e1c139aadadfdd branch from 229fff1 to 023d81b Compare September 21, 2026 20:42
@copyberry
copyberry Bot merged commit 023d81b into main Sep 21, 2026
6 of 9 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/bab242dd59da59ac6e7f428436e1c139aadadfdd branch September 21, 2026 20:42
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 21, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 023d81b0 Deployed Sep 21, 2026 by SK-AusTX via Identify potential duplicates (open issues fallback) #47248
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants