Skip to content

Launch Windows daemon children in a dedicated working directory - #49850

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/12ca95463ff3c80899a5b1a8800fead849f48017
Oct 1, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/12ca95463ff3c80899a5b1a8800fead849f48017

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Launch Windows daemon children in a dedicated working directory

Why

Windows processes hold their working directory open for their lifetime, and sandbox setup may broaden its ACL. Managed children should avoid pinning the launching project's directory or changing permissions on the private daemon state directory.

What changed

Create a workdir subdirectory alongside the PID files and use it as the working directory for both the managed app-server and updater on Windows.

Testing

Add a Windows regression test covering both managed children. It verifies that relative files land in workdir, the state directory still passes private-directory validation, and stopping each child removes its PID file.

## Why

Windows processes hold their working directory open for their lifetime, and sandbox setup may broaden its ACL. Managed children should avoid pinning the launching project's directory or changing permissions on the private daemon state directory.

## What changed

Create a `workdir` subdirectory alongside the PID files and use it as the working directory for both the managed app-server and updater on Windows.

## Testing

Add a Windows regression test covering both managed children. It verifies that relative files land in `workdir`, the state directory still passes private-directory validation, and stopping each child removes its PID file.

GitOrigin-RevId: 12ca95463ff3c80899a5b1a8800fead849f48017
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/12ca95463ff3c80899a5b1a8800fead849f48017 branch from 103dc79 to e2a7d53 Compare October 1, 2026 03:57
@copyberry
copyberry Bot merged commit e2a7d53 into main Oct 1, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/12ca95463ff3c80899a5b1a8800fead849f48017 branch October 1, 2026 03:57
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 1, 2026

This branch was successfully deployed

1 active deployment
issue-triage — e2a7d53c Deployed Oct 1, 2026 by vlastimilvajnorak via Translate non-English issue #16536
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