Skip to content

When running multiple agents in a session, switching between agents clears the message queue in the main thread. #20191

@0xc1f

Description

@0xc1f

What version of Codex CLI is running?

0.125.0

What subscription do you have?

Pro x20

Which model were you using?

gpt-5.5

What platform is your computer?

Linux

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

WSL/PowerShell

What issue are you seeing?

If there are multiple messages queued in the main session thread (added by pressing Tab), switching to another agent and then back to the main thread removes them from the queue. Instead of remaining in the send queue, all these messages are merged together and placed back into the text input field.

What steps can reproduce the bug?

  1. Start a session with multiple agents.
  2. In the main session thread, type a message and press Tab to add it to the queue.
  3. Repeat step 2 to have several messages in the send queue.
  4. Switch to any other agent.
  5. Switch back to the main session thread.

What is the expected behavior?

The messages should remain in the send queue in their original state, waiting to be sent. Switching between agents should not affect the queue in the main thread.

Additional information

It's annoying to separate the messages again by rebuilding the queue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingsubagentIssues involving subagents or multi-agent features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions