openai / openai/codex

Active subagent work can be interrupted when requesting additional capacity

Open
#45,102 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug subagent
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What issue are you seeing?

In a multi-agent session, requesting another worker while one is already running can interrupt the active worker and reassign its task. The original work then stops part-way through, and the replacement does not reliably resume from the exact checkpoint. This leaves the session unsure which work completed.

What steps can reproduce the bug?
  1. Start a long-running task with worker A.
  2. While worker A is working, request an additional worker for an independent task.
  3. Observe capacity handling interrupt or reassign worker A instead of adding worker B.
  4. Observe that worker A’s unfinished work is not clearly resumable and the user must reconstruct the missing work.
What is the expected behavior?

Active work should remain running when additional capacity is requested. If no slot is available, report that clearly and leave current workers untouched. If reassignment is explicitly necessary, preserve the full task state and checkpoint, explain the lifecycle transition, and ensure the replacement continues to completion.

Additional information

This report intentionally omits project, customer, financial, and task-specific details. The impact is lost continuity, duplicated coordination, and uncertainty about whether the original deliverable is still progressing. A visible lifecycle event log and an atomic handoff would make this diagnosable.

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 multi-agent capacity request described in the issue, then trace the worker lifecycle, capacity handling, reassignment, and checkpoint or handoff entry points. Done means active workers remain untouched when capacity is unavailable, or any required reassignment preserves task state, records the lifecycle transition, and resumes the work to completion.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ai-infra-agents
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
43/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.