revert #386 due to unsafe shell command parsing (#478)

Reverts https://github.com/openai/codex/pull/386 because:

* The parsing logic for shell commands was unsafe (`split(/\s+/)`
instead of something like `shell-quote`)
* We have a different plan for supporting auto-approved commands.
This commit is contained in:
Michael Bolin
2025-04-21 09:52:11 -07:00
committed by GitHub
parent 797eba4930
commit d36d295a1a
4 changed files with 1 additions and 68 deletions

View File

@@ -289,9 +289,6 @@ model: o4-mini # Default model
approvalMode: suggest # or auto-edit, full-auto
fullAutoErrorMode: ask-user # or ignore-and-continue
notify: true # Enable desktop notifications for responses
safeCommands:
- npm test # Automatically approve npm test
- yarn lint # Automatically approve yarn lint
```
```json