Skip to content

Prevent console windows for piped Windows child processes - #48483

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/990386032d74fa783a66bb20faff769539ea41c1
Sep 26, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/990386032d74fa783a66bb20faff769539ea41c1

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Prevent console windows for piped Windows child processes

Why

Piped child processes launched from a detached Windows process should not allocate a console window.

What changed

Set CREATE_NO_WINDOW by default for codex-rs/utils/pty child commands. Preserve it alongside CREATE_SUSPENDED when preparing a child for Job Object containment, since Tokio's creation_flags replaces existing flags.

Testing

Add a Windows regression test that runs from a detached process and verifies that children have no console window and retain working piped stdin and stdout, both with and without Job Object containment.

## Why

Piped child processes launched from a detached Windows process should not allocate a console window.

## What changed

Set `CREATE_NO_WINDOW` by default for `codex-rs/utils/pty` child commands. Preserve it alongside `CREATE_SUSPENDED` when preparing a child for Job Object containment, since Tokio's `creation_flags` replaces existing flags.

## Testing

Add a Windows regression test that runs from a detached process and verifies that children have no console window and retain working piped stdin and stdout, both with and without Job Object containment.

GitOrigin-RevId: 990386032d74fa783a66bb20faff769539ea41c1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/990386032d74fa783a66bb20faff769539ea41c1 branch from 03ca680 to 1a89aec Compare September 26, 2026 16:46
@copyberry
copyberry Bot merged commit 1a89aec into main Sep 26, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/990386032d74fa783a66bb20faff769539ea41c1 branch September 26, 2026 16:46
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 26, 2026
@W1II1am
W1II1am deployed to issue-triage September 26, 2026 16:49 — with GitHub Actions Active
@W1II1am
W1II1am deployed to issue-triage September 26, 2026 16:49 — with GitHub Actions Active
@W1II1am
W1II1am deployed to issue-triage September 26, 2026 16:49 — with GitHub Actions Active
@tion8888
tion8888 deployed to issue-triage September 26, 2026 17:21 — with GitHub Actions Active
@tion8888
tion8888 deployed to issue-triage September 26, 2026 17:21 — with GitHub Actions Active
@tion8888
tion8888 deployed to issue-triage September 26, 2026 17:21 — with GitHub Actions Active
@tion8888
tion8888 deployed to issue-triage September 26, 2026 17:21 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 1a89aec9 Deployed Sep 26, 2026 by tion8888 via Identify potential duplicates (open issues fallback) #48784
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.

6 participants