Charley Cunningham and GitHub
47aa1f3b6a
Reject request_user_input outside Plan/Pair ( #9955 )
...
## Context
Previous work in https://github.com/openai/codex/pull/9560 only rejected
`request_user_input` in Execute and Custom modes. Since then, additional
modes
(e.g., Code) were added, so the guard should be mode-agnostic.
## What changed
- Switch the handler to an allowlist: only Plan and PairProgramming are
allowed
- Return the same error for any other mode (including Code)
- Add a Code-mode rejection test alongside the existing Execute/Custom
tests
## Why
This prevents `request_user_input` from being used in modes where it is
not
intended, even as new modes are introduced.
2026-01-26 17:12:17 -08:00
..
2026-01-20 13:07:28 -08:00
2026-01-13 16:12:30 +00:00
2026-01-22 12:04:23 -08:00
2026-01-22 12:04:23 -08:00
2026-01-08 15:06:44 -08:00
2026-01-21 02:25:08 +00:00
2026-01-22 17:27:48 +00:00
2026-01-23 17:00:23 -08:00
2026-01-09 17:31:17 +00:00
2026-01-24 14:57:40 +00:00
2026-01-24 14:57:40 +00:00
2026-01-24 14:57:40 +00:00
2026-01-24 14:57:40 +00:00
2026-01-21 02:25:08 +00:00
2026-01-22 12:04:23 -08:00
2025-12-10 17:18:48 +00:00
2026-01-24 14:57:40 +00:00
2025-11-21 22:10:52 +00:00
2026-01-14 19:14:24 +00:00
2026-01-24 14:57:40 +00:00
2026-01-20 14:04:11 -08:00
2026-01-22 12:04:23 -08:00
2025-11-13 17:12:10 -08:00
2026-01-25 21:59:42 -08:00
2025-12-23 19:29:32 -08:00
2026-01-21 18:11:18 -08:00
2026-01-07 13:06:20 -08:00
2026-01-22 12:04:23 -08:00
2026-01-19 10:17:30 -08:00
2026-01-22 12:04:23 -08:00
2026-01-22 12:04:23 -08:00
2026-01-14 16:41:50 -08:00
2026-01-24 14:57:40 +00:00
2026-01-14 16:41:50 -08:00
2026-01-24 14:57:40 +00:00
2026-01-26 07:02:11 +00:00
2026-01-23 17:00:23 -08:00
2026-01-14 16:41:50 -08:00
2025-11-13 17:12:10 -08:00
2026-01-22 12:04:23 -08:00
2026-01-14 16:41:50 -08:00
2026-01-26 17:12:17 -08:00
2026-01-22 12:04:23 -08:00
2026-01-24 14:57:40 +00:00
2026-01-24 14:57:40 +00:00
2026-01-26 14:13:04 -08:00
2026-01-26 11:24:36 -08:00
2025-12-12 15:25:22 -08:00
2026-01-08 20:31:03 +00:00
2025-12-04 11:57:58 -08:00
2026-01-22 12:04:23 -08:00
2026-01-22 12:04:23 -08:00
2026-01-14 16:41:50 -08:00
2026-01-14 16:41:50 -08:00
2025-11-20 11:04:11 -08:00
2026-01-22 12:04:23 -08:00
2026-01-22 12:04:23 -08:00
2025-12-19 21:09:20 +00:00
2026-01-26 14:13:04 -08:00
2026-01-16 09:30:11 -08:00
2026-01-07 17:04:53 +00:00
2026-01-22 12:04:23 -08:00
2026-01-14 16:41:50 -08:00
2026-01-21 18:41:58 +00:00
2026-01-22 12:04:23 -08:00
2026-01-15 11:28:57 -08:00