Skip to content

Preserve Windows package identity for sandboxed descendants - #46575

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/52eb2fe33c8746d898b5d7ebf53bd001a55b5506
Sep 19, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Preserve Windows package identity for sandboxed descendants

Why

Package context propagation was limited to verified codex-command-runner.exe processes, preventing other packaged callers from passing their OS-assigned identity to sandboxed children.

What changed

Use the current process's OS package identity to decide whether to preserve desktop app context in both regular and ConPTY sandbox launches. Remove executable-name and staged-runner verification from this decision.

Reject callers without package identity when CODEX_WINDOWS_REGISTERED_CORE=1; otherwise, unpackaged callers continue without preserving app context.

## Why

Package context propagation was limited to verified `codex-command-runner.exe` processes, preventing other packaged callers from passing their OS-assigned identity to sandboxed children.

## What changed

Use the current process's OS package identity to decide whether to preserve desktop app context in both regular and ConPTY sandbox launches. Remove executable-name and staged-runner verification from this decision.

Reject callers without package identity when `CODEX_WINDOWS_REGISTERED_CORE=1`; otherwise, unpackaged callers continue without preserving app context.

GitOrigin-RevId: 52eb2fe33c8746d898b5d7ebf53bd001a55b5506
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/52eb2fe33c8746d898b5d7ebf53bd001a55b5506 branch from f204acd to fd59b42 Compare September 19, 2026 02:09
@copyberry
copyberry Bot merged commit fd59b42 into main Sep 19, 2026
1 check failed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/52eb2fe33c8746d898b5d7ebf53bd001a55b5506 branch September 19, 2026 02:10
@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.

@github-actions github-actions Bot locked and limited conversation to collaborators Sep 19, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — fd59b42a Deployed Sep 19, 2026 by vineelosr-cmd via Identify potential duplicates (all issues) #46669
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.

2 participants