Codex Auto-Editing Files Without Permission in VS Code
OpenAI Developer Community
April 17, 2026
Issue: Codex Auto-Editing Files Without Permission in VS Code
I am experiencing an issue with OpenAI Codex CLI (or its extension) in Visual Studio Code where it automatically edits project files without asking for my approval.
Previously, the tool used to request confirmation before applying any changes. However, it now directly modifies files, which is unsafe and not the expected behavior.
Details:
Codex applies changes automatically without user confirmation
No prompt or approval step before editing files
Behavior seems related to agent mode or auto-apply settings
This happens even when working in restricted or controlled environments
Expected Behavior:
Codex should always ask for user approval before making any file changes.
Codex edits files directly without any confirmation on macos
Discussion in the ATmosphere