Skip to content

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

Closed

Description

@iamkanguk97

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:

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

Activity

  1. added
    bug
    on May 19, 2026
  2. added
    CLI
    TUI
    plan
    on May 19, 2026
  3. changed the title [-]Shift+Enter in request_user_input free-form answer inserts newline but also advances to the next question[/-] [+]Shift+Enter in Plan mode questions UI inserts newline but also advances to the next question[/+] on May 19, 2026
  4. removed
    CLI
    on May 19, 2026
  5. added a commit that references this issue on Jun 27, 2026
    099f13b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIbugplan

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions