Skip to content

Allow queued prompts after queued /new #19151

Closed

Description

@JoeRoddy

What version of Codex CLI is running?

codex-cli 0.123.0

What subscription do you have?

Plus

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)?

WarpTerminal 0.2026.04.15.08.45.02

What issue are you seeing?

Codex CLI lets users queue prompts with Tab while the current turn is running. Queued prompts normally run after the current turn completes.

If /new is queued, and additional prompts are queued after /new, the queued /new runs and creates a new chat, but the remaining queued prompts after /new are dropped. They do not run in the newly created chat and do not remain visible/recoverable in the queue.

This loses user-entered prompts without an explicit warning.

What steps can reproduce the bug?

  1. Start Codex CLI.
  2. Submit a prompt that keeps the current turn running long enough to queue follow-up input.
  3. While the current turn is running, type /new and press Tab to queue it.
  4. Type one or more additional prompts and press Tab to queue them after /new.
  5. Wait for the active turn to complete.
  6. Observe that /new runs and creates a new chat.
  7. Observe that the prompts queued after /new are dropped instead of running after the new chat is created.

What is the expected behavior?

Queued prompts after /new should not be silently dropped.

Expected behavior should be one of:

  • /new creates the new chat, then subsequent queued prompts run in that new chat in order.
  • Or Codex rejects/warns when queuing prompts after a queued /new, making clear that /new is a queue boundary.
  • Or Codex preserves the remaining queued prompts and lets the user decide what to do with them.

In all cases, user-entered queued prompts should remain recoverable unless explicitly discarded.

Additional information

I searched open issues and did not find an exact duplicate. Related but not identical issues include:

Activity

  1. added
    bug
    CLI
    TUI
    session
    on Apr 23, 2026
  2. etraut-openai commented on Apr 23, 2026

    @etraut-openai
    Contributor

    This is currently by design, not a bug. I'll change this to a feature request.

  3. added
    enhancement
    and removed
    bug
    CLI
    session
    on Apr 23, 2026
  4. changed the title [-]Queued prompts after queued /new are dropped when /new completes[/-] [+]Allow queued prompts after queued /new[/+] on Apr 23, 2026
  5. JoeRoddy commented on Apr 23, 2026

    @JoeRoddy
    Author

    @etraut-openai the messages successfully queue in the ui. If it's by design, then an error should be surfaced if a user attempts to queue a new message while /new is already queue'd.

    Image
  6. etraut-openai commented on Apr 23, 2026

    @etraut-openai
    Contributor

    Queued messages are not parsed until they are dequeued, so /new isn't recognized as a new command until after it its dequeued.

    Keep in mind that /new creates an entirely new conversation. I'm not convinced that retaining queued commands that are part of one conversation should be replayed in the context of a new conversation.

  7. JoeRoddy commented on Apr 23, 2026

    @JoeRoddy
    Author

    so i almost had an "oh wow!" eureka moment with this product, when i queue'd /new and experimented with queueing something else after (assuming it would emit an error). when it didnt error i had an immediate revelation and got excited with how powerful it could be, because i thought i could compose long chains of actions, while simultaneously retaining full control over when to reset the context window:

    eg:

    long running dev command
    /new
    long running cleanup command
    /new
    long running code review command

    this would let me compose long sequences of work, and then step away from my computer for 30 minutes while it operated. when /new resolved, and nothing happened with the command that the cli let me queue, it effectively felt like a broken promise.

  8. JoeRoddy commented on May 17, 2026

    @JoeRoddy
    Author
    Image

    @etraut-openai i still find myself wanting to do this constantly. i want to fully clear the context window before the reviewer starts, to not bias the review.

    i can queue a review after /compact but then the reviewer will know its reviewing its own changes.

    as a user it just feels like an arbitrary restriction on my ability to compose the queue.

  9. etraut-openai commented on May 31, 2026

    @etraut-openai
    Contributor

    This feature request hasn't received enough upvotes, so I'm closing.

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

    TUIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions