Files
codex/codex-rs/core/src
Charley Cunningham 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-26 16:21:42 +00:00
2026-01-23 20:35:50 +00:00
2026-01-21 09:39:11 +00:00
2026-01-22 17:27:48 +00:00
2026-01-23 21:52:27 +00:00
2026-01-20 20:14:14 +00:00
2025-11-28 11:34:57 +00:00
2026-01-21 10:41:13 +00:00
2026-01-19 11:35:34 +00:00