Append safe commands for Windows

Resolved 💬 1 comment Opened Feb 5, 2026 by rstahlvm Closed Feb 5, 2026

What version of Codex CLI is running?

0.97.0

What subscription do you have?

Team

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

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

Windows Terminal (PowerShell)

What issue are you seeing?

Recently, the model often picked this command to read files:

Get-Content -Path [FILE] | Select-String -Pattern [PATTERN] -Context [N],[M]

In that case, every single one of them needs to be approved. I believe these are safe to be read-only, so could be added here: https://github.com/openai/codex/blob/main/codex-rs/core/src/command_safety/windows_safe_commands.rs

What steps can reproduce the bug?

prompt:

use "Get-Content -Path [FILE] | Select-String -Pattern [PATTERN] -Context [N],[M]" to read any arbitrary file in this project. pick arguments you enjoy

What is the expected behavior?

Does not ask for permission because the command is read-only.

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗