Skip to content

Reuse private desktops across Windows sandbox commands - #40672

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2df8b1c31ff22d72549f2ec3065cd80ea1dd0c6a
Aug 25, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

Reuse private desktops across Windows sandbox commands

Why

Private desktops need to remain available across command-runner exits and idle
gaps.

What changed

  • Keep parent-owned private desktops alive and reuse them only when the sandbox
    account and effective permissions match.
  • Pass the selected desktop name to elevated command runners, which validate and
    open the existing desktop instead of creating their own.
  • Apply the same policy-aware reuse to the legacy Windows sandbox path.

Testing

Add Windows tests for desktop-name validation, lifetime and concurrent reuse,
and separation when effective permissions differ.

## Why

Private desktops need to remain available across command-runner exits and idle
gaps.

## What changed

- Keep parent-owned private desktops alive and reuse them only when the sandbox
  account and effective permissions match.
- Pass the selected desktop name to elevated command runners, which validate and
  open the existing desktop instead of creating their own.
- Apply the same policy-aware reuse to the legacy Windows sandbox path.

## Testing

Add Windows tests for desktop-name validation, lifetime and concurrent reuse,
and separation when effective permissions differ.

GitOrigin-RevId: 2df8b1c31ff22d72549f2ec3065cd80ea1dd0c6a
@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 force-pushed the copyberry/codex-internal-to-codex-oss/2df8b1c31ff22d72549f2ec3065cd80ea1dd0c6a branch from bff7cef to 7e1ee6d Compare August 25, 2026 18:42
@copyberry
copyberry Bot merged commit 7e1ee6d into main Aug 25, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2df8b1c31ff22d72549f2ec3065cd80ea1dd0c6a branch August 25, 2026 18:43
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 25, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 7e1ee6df Deployed Aug 25, 2026 by vdiego28 via Identify potential duplicates (open issues fallback) #39897
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.

3 participants