Skip to content

Windows native CLI: visible CMD/PowerShell windows flash for every shell tool call #49371

Open

Description

@blue-gitty

What version of Codex CLI is running?

0.159.1

What subscription do you have?

Plus

Which model were you using?

No response

What platform is your computer?

No response

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

What issue are you seeing?

On Windows, Codex CLI 0.159.1 launches visible PowerShell/CMD windows every time the agent makes a shell tool call. This is disruptive because the windows repeatedly steal visual focus.

Reproduced with harmless read-only commands such as Get-Date, Get-Location, git branch --show-current, and directory listing commands.

I am using the elevated Windows sandbox and explicitly set:

[windows]
sandbox = "elevated"
sandbox_private_desktop = true

The behavior persists after restarting Codex and after confirming the CLI/runtime is 0.159.1.

Expected: sandbox helper processes should remain invisible/private while shell tools run.

Actual: visible PowerShell/CMD windows flash on screen for every tool invocation.

Please investigate the native Windows sandbox process-launch behavior

What steps can reproduce the bug?

Uploaded thread: 01a0eefe-cd5d-76b2-8dff-92b96b892206

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions