Skip to content

Use a compatible PowerShell fallback for the Windows MXC sandbox - #49019

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6c581396525a8fec7e1fb538b3e63b0de2ddb926
Sep 28, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Use a compatible PowerShell fallback for the Windows MXC sandbox

Why

Microsoft Store PowerShell cannot run under MXC. The existing fallback to an unpackaged PowerShell executable only applied to the elevated Windows sandbox.

What changed

Extend local PowerShell fallback discovery to MXC in unified_exec, using the executor's Windows sandbox selection. Keep discovery local and automatic -NoProfile insertion specific to the elevated sandbox. Skip this preparation for non-Windows target paths.

Testing

Extend command-preparation tests to cover MXC and add a Windows integration test that replaces a Store PowerShell path before launch, writes a file successfully, and verifies windows_mxc sandbox metadata.

)

## Why

Microsoft Store PowerShell cannot run under MXC. The existing fallback to an unpackaged PowerShell executable only applied to the elevated Windows sandbox.

## What changed

Extend local PowerShell fallback discovery to MXC in `unified_exec`, using the executor's Windows sandbox selection. Keep discovery local and automatic `-NoProfile` insertion specific to the elevated sandbox. Skip this preparation for non-Windows target paths.

## Testing

Extend command-preparation tests to cover MXC and add a Windows integration test that replaces a Store PowerShell path before launch, writes a file successfully, and verifies `windows_mxc` sandbox metadata.

GitOrigin-RevId: 6c581396525a8fec7e1fb538b3e63b0de2ddb926
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6c581396525a8fec7e1fb538b3e63b0de2ddb926 branch from 7eee4be to 4fd5745 Compare September 28, 2026 15:58
@copyberry
copyberry Bot merged commit 4fd5745 into main Sep 28, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6c581396525a8fec7e1fb538b3e63b0de2ddb926 branch September 28, 2026 15:58
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 28, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 4fd5745e Deployed Sep 28, 2026 by brentjreynolds via Translate non-English issue #15906
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.

9 participants