core-agent-ide/codex-rs/shell-command/src
Dylan Hurd 0fbe10a807
fix(core) exec_policy parsing fixes (#11951)
## Summary
Fixes a few things in our exec_policy handling of prefix_rules:
1. Correctly match redirects specifically for exec_policy parsing. i.e.
if you have `prefix_rule(["echo"], decision="allow")` then `echo hello >
output.txt` should match - this should fix #10321
2. If there already exists any rule that would match our prefix rule
(not just a prompt), then drop it, since it won't do anything.


## Testing
- [x] Updated unit tests, added approvals ScenarioSpecs
2026-02-16 23:11:59 -08:00
..
command_safety Remove git commands from dangerous command checks (#11510) 2026-02-13 01:33:02 +00:00
bash.rs fix(core) exec_policy parsing fixes (#11951) 2026-02-16 23:11:59 -08:00
lib.rs chore: rename codex-command to codex-shell-command (#11378) 2026-02-10 17:03:46 -08:00
parse_command.rs chore: rename codex-command to codex-shell-command (#11378) 2026-02-10 17:03:46 -08:00
powershell.rs chore: rename codex-command to codex-shell-command (#11378) 2026-02-10 17:03:46 -08:00
shell_detect.rs chore: rename codex-command to codex-shell-command (#11378) 2026-02-10 17:03:46 -08:00