Skip to content

[0.160] Backport remaining Windows console fix to frozen alpha.6 - #49386

Merged
andrewgu-oai merged 1 commit into
release/0.160.0-alpha.6from
release/0.160.0-alpha.6-windows-console
Sep 29, 2026
Merged

andrewgu-oai merged 1 commit into
release/0.160.0-alpha.6from
release/0.160.0-alpha.6-windows-console

Conversation

@andrewgu-oai

Copy link
Copy Markdown
Contributor

Backport #49308 onto the frozen 0.160.0-alpha.6 content commit c248f6d for the Windows console flashing issue #48074. That base already contains #49164, so only the missing patch is included. This does not advance the baked candidate to current main or publish stable 0.160.

The cherry-pick applied cleanly and its stable patch ID matches upstream. git diff --check passes. Native Windows validation on this exact candidate is still pending. Keep this PR in draft pending review, required checks, and focused unelevated-sandbox smoke evidence for external processes (whoami.exe, cmd.exe, Git, nested PowerShell), alongside built-ins, with and without the managed daemon. Record exact candidate SHA, CLI/daemon versions, CODEX_HOME, configuration, command output, exit codes, duration and visible console observations.

The unresolved hang report at #48074 (comment) is not proof these changes caused a regression, but requires investigation before treating the candidate as validated.

## What changed

Use `ConsoleMode::NoWindow` for legacy Windows sandbox capture and non-TTY unified execution, enabling `CREATE_NO_WINDOW` for these piped processes.

## Testing

Extend the PowerShell interrupt and capture tests to assert that `GetConsoleWindow()` returns null before checking process termination and descendant survival.

GitOrigin-RevId: dcc3b5554986ab0280748e5fa7080d36ded3d673
(cherry picked from commit 50d9c5d)
@andrewgu-oai
andrewgu-oai marked this pull request as ready for review September 29, 2026 22:46
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T22:48:25.185499Z d9f7a9a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@andrewgu-oai
andrewgu-oai enabled auto-merge (squash) September 29, 2026 22:49
@andrewgu-oai
andrewgu-oai merged commit 917ab70 into release/0.160.0-alpha.6 Sep 29, 2026
24 of 34 checks passed
@andrewgu-oai
andrewgu-oai deleted the release/0.160.0-alpha.6-windows-console branch September 29, 2026 22:52
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 29, 2026
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