Launching 15 sub agents freezes TUI
What version of Codex CLI is running?
0.133.0
What subscription do you have?
Pro
Which model were you using?
No response
What platform is your computer?
Windows
What terminal emulator and version are you using (if applicable)?
Windows Terminal (PowerShell)
Codex doctor report
What issue are you seeing?
Seconds to accept typing, impossible to switch between agents using /agent command, often completely blocked input and CLI rendering stops
What steps can reproduce the bug?
Send a prompt where you ask model to perform some work (e.g. remove low-value unit tests) and tell it to split work into 15 sub agents. After agents are started, try to use /agent command a few times to switch between several of them.
What is the expected behavior?
No lagging, no deadlocks, normal operation
Additional information
No response
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #23260
- #23435
- #24475
Powered by Codex Action
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
* [CLI: subagents memory leak #23260](https://github.com/openai/codex/issues/23260) * [Performance issues #23435](https://github.com/openai/codex/issues/23435) * [Codex App/CLI: subagent tasks trigger reconnect loop and stream disconnect #24475](https://github.com/openai/codex/issues/24475)Powered by Codex Action
Not a duplicate. This is about sub-agent performance, not performance in general, not a memory leak, not reconnects.
Maybe memory leak leads to freezing?
This is a hard blocker, codex team please fix this
(response from codex)
I’m closing this as stale. We fixed a delay in opening the agent picker and haven’t confirmed that the full freeze persists.
In 0.133.0, /agent checked each tracked thread one at a time before showing the list. With many subagents, that could block typing and screen updates. Since 0.147.0, the picker shows known agents immediately and refreshes the list in the background.
I retested 0.172.0 in Windows Terminal with PowerShell and 15 active subagents using simulated model responses. The picker and thread switches stayed responsive.
@runfence, if you can still reproduce the freeze on 0.172.0 or later with your original workload, please comment here so we can reopen this. It would help to know whether it stalls while typing, while opening /subagents, or after selecting an agent, and whether it recovers on its own.