Dylan Hurd
e783dab44c
fix(exec-policy) use is_known_safe_command less ( #20305 )
...
## Summary
Restricts behavior of `is_known_safe_command` only to modes where it is
explicitly part of the documented behavior:
- when `environment_lacks_sandbox_protections`
- in `AskForApproval::UnlessTrusted`
Notably, as a result of this, escalations for commands that pass
`is_known_safe_commands` are no longer auto-approved in
AskForApproval::OnRequest or AskForApproval::Granular.
## Testing
- [x] Updated unit tests
- [x] Updated approvals scenario tests.
---------
Co-authored-by: Codex <noreply@openai.com >
2026-05-11 11:37:53 -07:00
..
2026-05-08 11:15:14 +03:00
2026-04-21 17:48:33 -07:00
2026-05-06 18:00:21 +03:00
2026-04-12 18:36:03 -07:00
2026-05-09 08:28:15 -07:00
2026-05-11 11:37:53 -07:00
2026-04-03 15:03:21 -07:00
2026-05-11 08:15:52 -07:00
2026-05-11 19:33:15 +03:00
2026-05-01 15:11:22 -07:00
2026-05-08 13:00:57 -07:00
2026-04-26 20:59:58 -07:00
2026-05-11 19:33:15 +03:00
2026-05-06 02:12:31 +00:00
2026-05-11 19:33:15 +03:00
2026-05-05 10:34:44 -07:00
2026-05-01 00:56:20 +00:00
2026-04-28 17:05:53 -07:00
2026-05-06 10:48:37 +02:00
2026-04-12 18:36:03 -07:00
2026-05-05 19:13:55 +00:00
2026-05-08 13:00:57 -07:00
2026-04-28 17:03:20 -07:00
2026-05-06 10:48:37 +02:00
2026-04-28 17:03:20 -07:00
2026-05-08 17:41:15 -07:00
2026-04-22 13:34:33 -07:00
2026-05-08 20:09:51 +03:00
2026-04-28 17:06:59 -07:00
2026-05-05 09:51:18 +03:00
2026-04-28 17:05:53 -07:00
2026-05-05 19:13:55 +00:00
2026-05-04 12:57:05 -07:00
2026-05-08 20:29:00 +00:00
2026-05-06 11:20:34 -07:00
2026-05-06 02:12:31 +00:00
2026-05-06 22:48:29 -07:00
2026-05-05 09:51:18 +03:00
2026-05-06 11:20:34 -07:00
2026-05-06 19:54:26 +00:00
2026-05-06 22:48:29 -07:00
2026-04-21 17:48:33 -07:00
2026-05-08 17:41:15 -07:00
2026-05-05 12:12:03 -07:00
2026-05-05 09:51:18 +03:00
2026-04-21 17:48:33 -07:00
2026-05-08 13:00:57 -07:00
2026-04-26 20:59:58 -07:00
2026-05-02 04:22:12 +00:00
2026-04-28 17:03:20 -07:00
2026-04-28 17:08:04 -07:00
2026-05-06 22:48:29 -07:00
2026-04-22 13:34:33 -07:00
2026-04-30 20:03:26 -07:00
2026-05-06 11:20:34 -07:00
2026-05-06 02:12:31 +00:00
2026-04-28 17:10:42 -07:00
2026-05-06 11:36:15 +02:00
2026-04-20 10:27:01 -07:00
2026-05-08 13:00:57 -07:00
2026-04-28 17:05:53 -07:00
2026-04-28 17:15:58 -07:00
2026-05-05 18:58:18 -07:00
2026-05-05 09:51:18 +03:00
2026-05-11 19:45:08 +02:00
2026-04-21 17:48:33 -07:00
2026-04-21 17:48:33 -07:00
2026-05-06 10:48:37 +02:00
2026-05-08 13:00:57 -07:00
2026-04-28 17:03:20 -07:00
2026-05-08 13:00:57 -07:00
2026-04-28 23:01:40 +00:00
2026-04-29 19:13:57 +00:00
2026-05-06 22:48:29 -07:00
2026-04-21 17:48:33 -07:00
2026-04-28 17:06:59 -07:00
2026-05-08 01:29:03 +00:00
2026-04-28 23:01:40 +00:00
2026-04-28 17:03:20 -07:00
2026-05-06 02:12:31 +00:00