Skip to content

Messages to be submitted after next tool call (press esc to interrupt and send immediately) not working on CLI #17095

Open

Description

@JaySabva

What version of Codex CLI is running?

codex-cli 0.118.0

What subscription do you have?

Enterprise

Which model were you using?

gpt-5.4

What platform is your computer?

Darwin 25.4.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

Messages to be submitted after next tool call (press esc to interrupt and send immediately) not working on CLI

What steps can reproduce the bug?

Steps to reproduce

  1. Open the CLI.
  2. Submit a prompt that triggers a long-running tool call.
  3. While the tool call is still running, type a follow-up message into the input box.
  4. Wait for the UI hint: Messages to be submitted after next tool call (press esc to interrupt and send immediately).
  5. Press Esc.

Nothing happens. The queued message is not sent immediately, and the CLI stays in the current tool-call state.

What is the expected behavior?

The queued message should be submitted immediately after pressing Esc, interrupting the current tool call.

Additional information

No response

Activity

  1. added
    CLIIssues related to the Codex CLI
    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal display
    tool-callsIssues related to tool calling
    on Apr 8, 2026
  2. github-actions commented on Apr 8, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. etraut-openai commented on Apr 8, 2026

    @etraut-openai
    Contributor

    I'm not able to repro this problem.

    Which terminal emulator are you using? Perhaps it is configured to ignore the esc or map it to some other action?

  4. JaySabva commented on Apr 8, 2026

    @JaySabva
    ContributorAuthor

    Hey @etraut-openai, it's not working in IntelliJ's terminal. I tried on the default terminal, and it is working as expected.

  5. etraut-openai commented on Apr 8, 2026

    @etraut-openai
    Contributor

    This sounds like it might be a configuration issue or bug in the IntelliJ's terminal app.

  6. Yoon-Jeong-ho commented on Jun 8, 2026

    @Yoon-Jeong-ho

    I saw a related UX symptom on Codex CLI 0.137.0: while a tool call is running, the TUI displays Messages to be submitted after next tool call... above the normal composer. To a user typing during output, this can look like two input areas, where only the lower one is the normal active composer.

    This seems distinct from a tmux HUD/viewport issue I also found locally, but the queued-follow-up composer label/placement is what made the user report it as “two typing boxes”.

  7. explcre commented on Aug 3, 2026

    @explcre

    I am also experiencing this problem.

    Environment:

    • Codex CLI: codex-cli 0.145.0
    • Platform: Linux / Ubuntu
    • Terminal: SSH terminal
    • Uploaded thread: 019fc4df-715d-7e52-b466-f70a94eee9aa

    While Codex is working or running a tool, I often type a correction or additional instruction. Pressing Esc after the message indicating that it can interrupt and send immediately does not consistently interrupt the current activity or incorporate the queued instruction promptly.

    The desired behavior is:

    1. Esc immediately interrupts or pauses the current tool call when possible.
    2. The queued instruction is submitted immediately.
    3. Codex incorporates it into the current task rather than treating it as an unrelated new task.
    4. After handling the instruction, Codex resumes the unfinished original task unless the new message explicitly cancels or replaces it.
    5. The UI clearly indicates whether the current command was cancelled, completed, or is still running.

    Claude Code currently feels more responsive for mid-task steering and corrections. Improving this interaction would make long Codex CLI sessions much easier to control.

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

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingtool-callsIssues related to tool calling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions