Files
codex/codex-rs/core/tests/suite
T
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.
47aa1f3b6a ยท 2026-01-26 17:12:17 -08:00
History
..
2026-01-24 14:57:40 +00:00
2026-01-24 14:57:40 +00:00
2025-11-21 22:10:52 +00:00
2026-01-25 21:59:42 -08:00
2026-01-24 14:57:40 +00:00
2026-01-24 14:57:40 +00:00