openai / openai/codex

Subagents panel permanently shows completed agents as Active and Working

Open
#38,364 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

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

26.803.10989.0

What subscription do you have?

Pro 200

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

The Subagents panel continues to list completed subagents under “Active” with the status “Working.” Their displayed durations continue increasing several days after the underlying tasks completed.

Restarting the Codex app does not clear or correct the entries.

Local diagnostic checks confirmed that the underlying tasks reached completed terminal states, had no subsequent activity, and were no longer present in the live active-agent registry.

The displayed state therefore disagrees with the underlying task state. This makes the panel difficult to trust and creates concern that completed agents might still be consuming usage allowance.

What steps can reproduce the bug?
  1. Start a Codex task that creates multiple subagents.
  2. Allow every subagent to finish and return its final result.
  3. Continue using or later reopen the original task.
  4. Open the Subagents panel.
  5. Observe that completed agents remain listed under “Active” as “Working,” with durations that continue increasing.
  6. Close and restart the Codex app.
  7. Reopen the same task and Subagents panel.
  8. Observe that the stale active entries remain.

No error message is displayed.

What is the expected behavior?

After a subagent finishes, it should either disappear from the Active list or be clearly marked Completed. Its elapsed-time counter should stop.

When Codex restarts or reloads a task, the Subagents panel should reconcile its display with the underlying terminal task states. Only agents that are actually executing should appear as Active or Working.

Additional information

Local diagnostic checks found:

  • Every affected underlying task had reached a completed terminal state.
  • Each task’s last-update time matched its completion time.
  • No subsequent task activity was recorded.
  • The live agent registry contained no active subagents.

The persisted activity history contained start and interaction events but appeared to lack corresponding completion events for the Subagents display. This may indicate that the panel retains stale activity state instead of reconciling it against terminal task status.

No continuing model activity was detected, but the incorrect UI prevents the user from confirming that through the app.

Private technical identifiers can be provided directly to maintainers if needed.

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 with the Subagents panel and the task reload/restart path, comparing its displayed Active/Working state with terminal task states and the live agent registry. Check how persisted activity history is consumed when completion events are absent. Done means completed agents disappear or show Completed, their counters stop, and the panel reconciles correctly after reload and restart.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.