Skip to content

TUI freeze during agent fan-out #16688

@Auties00

Description

@Auties00

What version of Codex CLI is running?

codex-cli 0.118.0

What subscription do you have?

Codex Pro

Which model were you using?

gpt-5.4

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

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

Windows Terminal (Command Prompt)

What issue are you seeing?

When spawning a large number of sub-agents (e.g. 100), the TUI becomes completely unresponsive.

What steps can reproduce the bug?

  1. Start the Codex TUI.
  2. Have the model (or a skill) issue many spawn_agent tool calls in a single turn (e.g. 100 noop agents).
  3. The TUI freezes

What is the expected behavior?

The TUI should remain responsive and codex should not freeze indefinitely.

Additional information

I've already fixed this issue locally, but like for the other issue I opened I noticed that PRs require approval before being opened.
I wanted to attach videos directly, but for whatever reason GitHub is not allowing me: https://streamable.com/63gerb

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingperformancesubagentIssues 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