Shift+Enter in Plan mode questions UI inserts newline but also advances to the next question

Resolved 💬 0 comments Opened May 19, 2026 by iamkanguk97 Closed May 19, 2026

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?

  1. Start Codex CLI.
  2. Enter Plan mode.
  3. Trigger a flow where Codex asks structured questions using the questions UI.
  4. Navigate to a question that has a free-form answer field.
  5. Press Tab until the free-form text input is focused.
  6. Type a first line of text.
  7. Press Shift+Enter.
  8. Observe that Codex advances to the next question/page.
  9. Press Esc to return to the previous page.
  10. 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:

  • #4218: normal TUI prompt sends/submits instead of inserting newline.
  • #20501 / #20580 / #21115: normal composer newline keybinding regressions.
  • #8673: feature request for Shift+Enter newline support in the interactive prompt.

This report is specifically about the Plan mode structured questions / request_user_input UI and the double-handling behavior: newline insertion plus page advance.

View original on GitHub ↗