openai / openai/codex

Multi-agent unexpectedly created ~12 sessions despite a ~4-agent limit, consuming ~50% of 5-hour quota in ~10 seconds

Open
#41,316 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug rate-limits subagent windows-os
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of the Codex App are you using (From “About Codex” dialog)?

26.820.71523

What subscription do you have?

GPT Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

I encountered an unexpected multi-agent fan-out issue in Codex App while using Target mode, with Terra XHigh as the main model.

My original prompt explicitly limited the number of subagents. The relevant part was:

*** [private research workflow redacted] ***

Please use at most 2 Sol XHigh subagents to complete these tasks.

If the specified task is encountered, assign 2 Terra XHigh subagents to it.

Therefore, even under the broadest interpretation of my prompt, I expected:

  • 1 Terra XHigh main agent
  • at most 2 Sol XHigh subagents
  • at most 2 Terra XHigh subagents for the specified task, if applicable

In other words, I expected at most approximately 4 subagents, plus the main Terra XHigh agent.

I did not instruct any subagent to recursively spawn additional agents or create additional independent sessions.

However, Codex unexpectedly created approximately 12 separate sessions (K01-K12) within a very short period of time, together with additional subagent activity.

At approximately the same time, around 50% of my 5-hour usage quota was consumed within roughly 10 seconds.

What steps can reproduce the bug?
Relevant configuration
  • Mode: Target
  • Main model: Terra XHigh
  • Requested Sol subagents: at most 2 Sol XHigh
  • Requested Terra subagents: 2 Terra XHigh for the specified task, if applicable
  • Expected maximum subagents: approximately 4
  • Expected maximum active agents including the main agent: approximately 5
  • Observed newly created sessions: approximately 12
  • Observed quota impact: ~50% of the 5-hour limit in ~10 seconds
What is the expected behavior?

I expected the Terra XHigh main agent to orchestrate no more than approximately 4 explicitly requested subagents.

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Target mode with Terra XHigh, using the stated subagent limits, and trace where sessions are created and quota usage is recorded. Done means the app creates no more sessions than the requested limit and does not consume the quota unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ai, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.