Codex Extension running Powershell behind every command
Open 💬 5 comments Opened Apr 9, 2026 by dacoupquie
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the IDE extension are you using?
v26.406.31014
What subscription do you have?
Plus
Which IDE are you using?
Antigravity/VS Code
What platform is your computer?
Windows 11 64-bit
What issue are you seeing?
From today, 9th Apri, 10AM BST Time, I'm having an issue in which the Codex IDE Extension runs a Powershell behind every normal command, making my Antivirus app flag it. It used to only be flagged for encoding UTF 8 but now its doing on pretty much every command.
Its doing the following:
The app C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe was passed a malicious command line and has been blocked. Your device is now safe.
Command line: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -EncodedCommand (then a bunch of gibberish)
What steps can reproduce the bug?
Just use Codex normally, every command ran gets this
What is the expected behavior?
_No response_
Additional information
_No response_
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I am seeing a similar issue on Windows with Norton Antivirus following Codex activity.
Norton flags or blocks PowerShell-related execution as heuristic threats, including detections such as
IDP.HELU.PSE75 - Command line detectiononpowershell.exeandIDP.Genericon a.ps1helper script. This appears to be triggered by the command-line/process shape rather than by repository-specific content.The practical impact is that normal Codex workflows can be interrupted by AV blocking or quarantine of PowerShell/script execution. I am omitting local paths and user-specific details, but this looks like the same general class of issue: Codex-driven PowerShell invocations can trip Windows AV heuristics.
Additional impact: this is not only a one-off interrupted command. After a restart, the AV block can leave the Windows environment in a degraded state because PowerShell itself is blocked or quarantined, which interferes with normal startup/recovery and makes the machine difficult to use until the AV action is manually remediated.
That raises the severity: Codex-triggered PowerShell command shapes can lead to system-level disruption on Windows, not just failed Codex tasks.
Clarification on my Norton comments above: that report is from the Codex Windows desktop app, not the IDE extension. It may share the same underlying PowerShell/AV heuristic class, but it is not an exact duplicate of this extension-specific report.
I opened a separate desktop-app issue for that case: #25425.
I reproduced this in the Windows desktop app and traced the visible tab to the long-lived PowerShell AST parser rather than to a user shell or task runner.
Environment:
26.727.6591.010.0.26200.07.6.41.24.11911.0windowingBehavior = useAnyExistingSanitized evidence:
ChatGPT.exe -> codex.exe app-server -> pwsh.exe-NoLogo -NoProfile -NonInteractive -EncodedCommand(payload intentionally omitted).Source-level cause:
PowershellParserProcess::spawnincodex-rs/shell-command/src/command_safety/powershell_parser.rsredirects stdio but does not set a Windows process creation flag.parse_with_cached_processcaches the child and retries once after a broken stream. Closing the visible tab terminates the parser; the next safety parse then creates a new child, which explains repeated tabs.useAnyExistingappears to amplify the missing creation contract by surfacing the console child in the existing Windows Terminal window.I prepared a focused patch that applies
CREATE_NO_WINDOWthroughstd::os::windows::process::CommandExt::creation_flagsonly on Windows, without changing the parser protocol, pipes, cache, or retry behavior:https://github.com/ibocon/codex/commit/c8b97701a986978853e8777e88a9b209a45e3d5f
Validation:
just test -p codex-shell-command: 141/141 passed on Linuxcargo check -p codex-shell-command --tests --target x86_64-pc-windows-gnu: passedjust fix -p codex-shell-command: passedI did not open an unsolicited PR because
docs/contributing.mdcurrently requires an explicit maintainer invitation. If this approach matches the intended fix, I can open the prepared branch as a PR.