External Publication
Visit Post

Sub Agent Limit Bug - codex plugin in vs code

OpenAI Developer Community May 21, 2026
Source

Yeah, its often not closing the “thread handles” on subagents Try telling codex to always close thread handles for subagents after they are done when you ask it to use subagents (or perhaps try in custom instructions, I didnt try that yet) Otherwise it just keeps spawning more, while not all are closed

Or after the first turn of using them, ask it to check if some subagent thread handles are still not closed and to close them

It seems it still needs some help with these

Also these are default

multi_agent = true

there is also under development

multi_agent_v2 = true

Actually still didnt try v2 There isnt exactly an explanation/documentation on it yet it seems Just have to use ChatGPT/codex to check their repo and explain the v2

Discussion in the ATmosphere

Loading comments...