Dylan Hurd
215fb464f1
[release/0.144] fix(core) expand is_dangerous_command ( #33455 )
...
## Summary
Cherry-picks the seven commits from
[openai/codex-internal#1942 ](https://github.com/openai/codex-internal/pull/1942 )
onto `release/0.144`.
This backport:
1. enables dangerous-command detection in danger-full-access mode
2. expands literal Bash parsing so additional forced `rm` forms are
detected
3. returns a specific rejection reason to the model when a dangerous
command is denied
The commits applied without conflicts or release-only changes. `git
range-diff` confirms every cherry-picked patch matches the source PR
exactly.
## Validation
- `just test -p codex-shell-command` (141 passed)
- `just test -p codex-core exec_policy` (107 passed)
- `just test -p codex-core` outside the sandbox (2,947 passed; 4
unrelated environment/setup failures)
- 3 RMCP tests could not locate the test-only `test_stdio_server` binary
- 1 user-shell environment test observed the tool runner's mandated
`CODEX_SANDBOX_NETWORK_DISABLED=1`
- `just fix -p codex-core`
- `just fix -p codex-shell-command`
- `just fmt`
- `git diff --check`
2026-07-15 18:09:11 -07:00
..
2026-07-09 03:40:08 +00:00
2026-07-06 14:29:19 -07:00
2026-07-09 03:40:08 +00:00
2026-07-09 12:25:19 +09:00
2026-07-09 00:58:28 +00:00
2026-07-13 21:14:18 -07:00
2026-06-24 21:08:39 -07:00
2026-07-06 07:05:40 -07:00
2026-06-23 20:07:09 +01:00
2026-07-09 03:40:08 +00:00
2026-07-06 11:20:32 -07:00
2026-07-08 09:59:50 -07:00
2026-07-12 20:13:56 -07:00
2026-07-06 21:22:51 -07:00
2026-07-01 18:11:09 -07:00
2026-06-24 22:57:42 -07:00
2026-06-24 22:57:42 -07:00
2026-06-24 22:57:42 -07:00
2026-06-23 00:02:33 +00:00
2026-06-18 19:31:19 +00:00
2026-05-08 12:36:02 -07:00
2026-07-06 23:23:56 -04:00
2026-06-22 23:56:16 -07:00
2026-07-07 03:49:53 +00:00
2026-07-08 14:06:15 -07:00
2026-07-06 10:55:35 -04:00
2026-07-08 15:27:04 -07:00
2026-07-06 11:20:32 -07:00
2026-07-07 14:26:03 -07:00
2026-07-07 12:57:19 -07:00
2026-07-07 12:57:19 -07:00
2026-07-07 14:26:03 -07:00
2026-07-07 14:26:03 -07:00
2026-06-24 22:57:42 -07:00
2026-06-24 22:57:42 -07:00
2026-06-23 16:49:13 -07:00
2026-06-10 12:54:21 +02:00
2026-06-24 13:25:44 -07:00
2026-07-08 21:46:11 -04:00
2026-06-24 22:17:43 -07:00
2026-07-06 11:20:32 -07:00
2026-07-06 11:20:32 -07:00
2026-06-25 17:49:43 +00:00
2026-06-24 18:03:44 -07:00
2026-07-06 14:29:19 -07:00
2026-06-25 19:00:23 +00:00
2026-06-25 19:00:23 +00:00
2026-07-15 18:09:11 -07:00
2026-06-05 11:20:52 -07:00
2026-07-15 18:09:11 -07:00
2026-06-18 14:09:38 +02:00
2026-06-23 20:07:09 +01:00
2026-05-13 11:31:27 +02:00
2026-06-24 22:58:34 +01:00
2026-06-23 17:23:38 -07:00
2026-06-22 16:41:00 -07:00
2026-06-22 23:56:16 -07:00
2026-04-28 13:03:28 +02:00
2026-04-28 19:43:44 -07:00
2026-07-08 09:59:50 -07:00
2026-07-08 16:04:30 -07:00
2026-06-26 00:53:07 +01:00
2026-05-26 20:59:47 -07:00
2026-07-08 21:46:11 -04:00
2026-07-07 13:13:59 -04:00
2026-06-24 13:25:44 -07:00
2026-06-22 16:45:23 -07:00
2026-07-06 07:05:40 -07:00
2026-06-15 08:28:02 -07:00
2026-07-06 14:51:34 -07:00
2026-07-06 19:28:44 -07:00
2026-07-06 19:28:44 -07:00
2026-04-24 17:49:29 -07:00
2026-05-11 11:32:40 -07:00
2026-06-26 09:12:42 -07:00
2026-06-24 13:08:14 -07:00
2026-06-26 01:36:44 +01:00
2026-06-26 09:12:42 -07:00
2026-06-24 13:08:14 -07:00
2026-06-23 17:23:38 -07:00
2026-07-06 14:12:54 -07:00
2026-06-01 18:45:07 +00:00
2026-07-07 14:26:03 -07:00
2026-05-26 11:01:18 +02:00
2026-06-22 13:25:48 -07:00
2026-06-01 23:33:42 +00:00
2026-06-18 19:31:19 +00:00
2026-06-23 12:13:54 -07:00
2026-05-15 10:58:50 -07:00
2026-05-15 10:58:50 -07:00
2026-06-16 14:34:54 +02:00
2026-06-16 14:34:54 +02:00
2026-06-26 09:12:42 -07:00
2026-06-24 22:57:42 -07:00
2026-06-15 20:10:53 -07:00
2026-06-16 21:42:28 +00:00
2026-06-15 08:18:13 -07:00
2026-06-15 08:18:13 -07:00
2026-06-23 17:23:38 -07:00
2026-06-03 10:41:41 -07:00
2026-05-04 11:46:03 -07:00
2026-07-09 12:25:19 +09:00
2026-07-09 12:25:19 +09:00
2026-07-09 02:32:10 +00:00
2026-07-09 02:32:10 +00:00
2026-07-09 02:32:10 +00:00
2026-06-26 19:35:54 +00:00
2026-06-26 19:35:54 +00:00
2026-06-23 00:02:33 +00:00
2026-06-10 17:17:44 -07:00
2026-06-22 09:05:27 -07:00
2026-06-22 09:05:27 -07:00
2026-06-27 09:54:56 -07:00
2026-07-06 23:23:56 -04:00
2026-04-20 22:39:17 -07:00
2026-06-16 22:17:24 -07:00
2026-05-14 16:54:59 -07:00
2026-05-14 16:54:59 -07:00
2026-05-28 15:26:55 -07:00
2026-05-28 15:26:55 -07:00
2026-05-22 12:13:52 +02:00
2026-05-29 11:01:44 -07:00