Repository navigation
Preserve script quotes in Windows sandbox cmd invocations - #60624
Merged
copyberry[bot] merged 1 commit intoNov 10, 2026
Conversation
## Why CRT argument escaping adds literal backslashes before quotes in `cmd.exe /c` scripts, breaking quoted paths and executable names. ## What changed Serialize single-script `cmd /c` invocations with `/s /c` and an outer quote pair, preserving the script's quotes. Share this handling across Windows sandbox process creation, ConPTY, and MXC execution requests. ## Testing Add a regression test for `certutil -hashfile` with a quoted path containing spaces, and update the command-line test for a quoted PowerShell executable. GitOrigin-RevId: 32b4b7b55f6af4dba206813eac150310f37ae1d4
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/32b4b7b55f6af4dba206813eac150310f37ae1d4
branch
from
November 10, 2026 16:58
3fe4b95 to
627b579
Compare
Contributor
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/32b4b7b55f6af4dba206813eac150310f37ae1d4
branch
November 10, 2026 16:58
jordanhubbard
temporarily deployed
to
issue-triage
November 10, 2026 17:17 — with
GitHub Actions
Inactive
jordanhubbard
temporarily deployed
to
issue-triage
November 10, 2026 17:17 — with
GitHub Actions
Inactive
jordanhubbard
temporarily deployed
to
issue-triage
November 10, 2026 17:17 — with
GitHub Actions
Inactive
LegkoApps
temporarily deployed
to
issue-triage
November 10, 2026 17:17 — with
GitHub Actions
Inactive
LegkoApps
temporarily deployed
to
issue-triage
November 10, 2026 17:17 — with
GitHub Actions
Inactive
LegkoApps
temporarily deployed
to
issue-triage
November 10, 2026 17:17 — with
GitHub Actions
Inactive
LegkoApps
temporarily deployed
to
issue-triage
November 10, 2026 17:18 — with
GitHub Actions
Inactive
jordanhubbard
temporarily deployed
to
issue-triage
November 10, 2026 17:18 — with
GitHub Actions
Inactive
uhlhosting
temporarily deployed
to
issue-triage
November 10, 2026 17:26 — with
GitHub Actions
Inactive
uhlhosting
temporarily deployed
to
issue-triage
November 10, 2026 17:26 — with
GitHub Actions
Inactive
uhlhosting
temporarily deployed
to
issue-triage
November 10, 2026 17:26 — with
GitHub Actions
Inactive
uhlhosting
temporarily deployed
to
issue-triage
November 10, 2026 17:27 — with
GitHub Actions
Inactive
abosisio
temporarily deployed
to
issue-triage
November 10, 2026 17:47 — with
GitHub Actions
Inactive
abosisio
temporarily deployed
to
issue-triage
November 10, 2026 17:47 — with
GitHub Actions
Inactive
abosisio
temporarily deployed
to
issue-triage
November 10, 2026 17:47 — with
GitHub Actions
Inactive
abosisio
temporarily deployed
to
issue-triage
November 10, 2026 17:48 — with
GitHub Actions
Inactive
mazhefa-ui
temporarily deployed
to
issue-triage
November 10, 2026 17:55 — with
GitHub Actions
Inactive
mazhefa-ui
temporarily deployed
to
issue-triage
November 10, 2026 17:55 — with
GitHub Actions
Inactive
mazhefa-ui
temporarily deployed
to
issue-triage
November 10, 2026 17:55 — with
GitHub Actions
Inactive
mazhefa-ui
temporarily deployed
to
issue-triage
November 10, 2026 17:56 — with
GitHub Actions
Inactive
andrespluas
temporarily deployed
to
issue-triage
November 10, 2026 18:06 — with
GitHub Actions
Inactive
andrespluas
temporarily deployed
to
issue-triage
November 10, 2026 18:06 — with
GitHub Actions
Inactive
andrespluas
temporarily deployed
to
issue-triage
November 10, 2026 18:06 — with
GitHub Actions
Inactive
jrave9000
temporarily deployed
to
issue-triage
November 10, 2026 18:08 — with
GitHub Actions
Inactive
jrave9000
temporarily deployed
to
issue-triage
November 10, 2026 18:08 — with
GitHub Actions
Inactive
jrave9000
temporarily deployed
to
issue-triage
November 10, 2026 18:08 — with
GitHub Actions
Inactive
jrave9000
temporarily deployed
to
issue-triage
November 10, 2026 18:09 — with
GitHub Actions
Inactive
Studmeister247
temporarily deployed
to
issue-triage
November 10, 2026 18:12 — with
GitHub Actions
Inactive
Studmeister247
temporarily deployed
to
issue-triage
November 10, 2026 18:12 — with
GitHub Actions
Inactive
Studmeister247
temporarily deployed
to
issue-triage
November 10, 2026 18:12 — with
GitHub Actions
Inactive
yangmy0213-eng
temporarily deployed
to
issue-triage
November 10, 2026 18:12 — with
GitHub Actions
Inactive
yangmy0213-eng
temporarily deployed
to
issue-triage
November 10, 2026 18:12 — with
GitHub Actions
Inactive
yangmy0213-eng
temporarily deployed
to
issue-triage
November 10, 2026 18:12 — with
GitHub Actions
Inactive
Studmeister247
temporarily deployed
to
issue-triage
November 10, 2026 18:13 — with
GitHub Actions
Inactive
yangmy0213-eng
temporarily deployed
to
issue-triage
November 10, 2026 18:13 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preserve script quotes in Windows sandbox cmd invocations
Why
CRT argument escaping adds literal backslashes before quotes in
cmd.exe /cscripts, breaking quoted paths and executable names.What changed
Serialize single-script
cmd /cinvocations with/s /cand an outer quote pair, preserving the script's quotes. Share this handling across Windows sandbox process creation, ConPTY, and MXC execution requests.Testing
Add a regression test for
certutil -hashfilewith a quoted path containing spaces, and update the command-line test for a quoted PowerShell executable.