Skip to content

Resolve Windows sandbox PowerShell fallbacks on the exec server - #49098

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

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Resolve Windows sandbox PowerShell fallbacks on the exec server

Why

Remote controllers cannot resolve a sandbox-compatible PowerShell executable on the execution host.

What changed

Apply the existing PowerShell fallback during exec-server request preparation for the Elevated and Mxc Windows sandbox backends. Match pwsh and powershell executable names case-insensitively and replace inaccessible Store PowerShell paths when a compatible executable is available.

Testing

Add Windows RPC regression tests for lowercase and mixed-case PowerShell aliases with a restricted server PATH, verifying successful command execution in the Mxc sandbox.

## Why

Remote controllers cannot resolve a sandbox-compatible PowerShell executable on the execution host.

## What changed

Apply the existing PowerShell fallback during exec-server request preparation for the `Elevated` and `Mxc` Windows sandbox backends. Match `pwsh` and `powershell` executable names case-insensitively and replace inaccessible Store PowerShell paths when a compatible executable is available.

## Testing

Add Windows RPC regression tests for lowercase and mixed-case PowerShell aliases with a restricted server `PATH`, verifying successful command execution in the `Mxc` sandbox.

GitOrigin-RevId: 365541af2f026a662b1988429f5d182c98e4a236
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/365541af2f026a662b1988429f5d182c98e4a236 branch from c75a5cf to f543051 Compare September 28, 2026 23:21
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot merged commit f543051 into main Sep 28, 2026
1 check failed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/365541af2f026a662b1988429f5d182c98e4a236 branch September 28, 2026 23:21
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 28, 2026
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.

1 participant