Uncontrolled Agent and Chat Creation in Multi-Agent Mode

Resolved 💬 2 comments Opened Jan 25, 2026 by igor-popryadukhin Closed Jan 25, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.89.0

What subscription do you have?

API

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

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

Windows (WSL)

What issue are you seeing?

When using multi-agent mode, the system creates an excessive number of agents that fully consume the virtual machine’s resources. This results in application crashes and renders the WSL environment unusable. Additionally, dozens of automatically generated chats appear in the history.

wsl
Разрушительный сбой
Код ошибки: Wsl/Service/E_UNEXPECTED

What steps can reproduce the bug?

Uploaded thread: 019bf667-3c1e-7092

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

2 Comments

etraut-openai contributor · 7 months ago

Thanks for the report.

The next version adds a hard upper limit on the number of subagents and disallows sub-subagents.

Note that this feature is still under active development and is not ready for general usage. Rough edges like this should be expected at this stage. But we appreciate the early feedback!

igor-popryadukhin · 7 months ago

Thank you very much, I didn’t expect such a quick response.