What version of Codex CLI is running?
codex-cli 0.131.0
What subscription do you have?
Pro
Which model were you using?
gpt-5.5
What platform is your computer?
Darwin 25.3.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Warp
Codex doctor report
What issue are you seeing?
While using Codex CLI in Plan mode, I was answering a structured question in the questions UI. I used Tab to focus the free-form answer field, typed some text, and pressed Shift+Enter because I expected it to insert a newline while staying on the same question page.
Instead, Codex immediately advanced to the next question/page. If I pressed Esc to go back to the previous page, the newline had actually been inserted into the answer.
So the free-form text input appears to handle Shift+Enter as newline insertion, but the Plan mode questions UI also appears to handle the same key event as “next” / page navigation.
What steps can reproduce the bug?
- Start Codex CLI.
- Enter Plan mode.
- Trigger a flow where Codex asks structured questions using the questions UI.
- Navigate to a question that has a free-form answer field.
- Press
Tab until the free-form text input is focused.
- Type a first line of text.
- Press
Shift+Enter.
- Observe that Codex advances to the next question/page.
- Press
Esc to return to the previous page.
- Observe that the previous answer now contains the newline, even though the UI also advanced.
What is the expected behavior?
When the free-form answer field is focused, Shift+Enter should insert a newline and remain on the current question page.
If plain Enter is intended to advance to the next question, Shift+Enter should be consumed by the focused text input and should not also trigger page navigation.
Additional information
Related issues, but not exact duplicates:
This report is specifically about the Plan mode structured questions / request_user_input UI and the double-handling behavior: newline insertion plus page advance.
What version of Codex CLI is running?
codex-cli 0.131.0
What subscription do you have?
Pro
Which model were you using?
gpt-5.5
What platform is your computer?
Darwin 25.3.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Warp
Codex doctor report
What issue are you seeing?
While using Codex CLI in Plan mode, I was answering a structured question in the questions UI. I used
Tabto focus the free-form answer field, typed some text, and pressedShift+Enterbecause I expected it to insert a newline while staying on the same question page.Instead, Codex immediately advanced to the next question/page. If I pressed
Escto go back to the previous page, the newline had actually been inserted into the answer.So the free-form text input appears to handle
Shift+Enteras newline insertion, but the Plan mode questions UI also appears to handle the same key event as “next” / page navigation.What steps can reproduce the bug?
Tabuntil the free-form text input is focused.Shift+Enter.Escto return to the previous page.What is the expected behavior?
When the free-form answer field is focused,
Shift+Entershould insert a newline and remain on the current question page.If plain
Enteris intended to advance to the next question,Shift+Entershould be consumed by the focused text input and should not also trigger page navigation.Additional information
Related issues, but not exact duplicates:
Shift+Enternewline support in the interactive prompt.This report is specifically about the Plan mode structured questions /
request_user_inputUI and the double-handling behavior: newline insertion plus page advance.