openai / openai/codex

[Windows] Old subagents remain stuck as running after restarting Codex App

Open
#38,408 3 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)?

Unknown

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Microsoft Windows 10 Home 22H2, build 19045, x64

What issue are you seeing?

The Subagents panel shows 16 old subagents as still running.

These subagents have been displayed as running for 4 to 8 days. I completely closed and restarted the Codex App, but they are still listed as running.

The current live agent tree contains only the main agent. The old subagents no longer exist in the live agent tree, so they cannot be interrupted or stopped. The user interface also provides no option to stop, remove, or delete these stale entries.

Please provide a way to clear orphaned subagent records and correct their displayed status.

What steps can reproduce the bug?
  1. Open a task that previously used multiple subagents.
  2. Open the Subagents panel.
  3. Observe that old subagents are still shown as running.
  4. Completely close the Codex App.
  5. Restart the Codex App.
  6. Open the Subagents panel again.
  7. The same old subagents are still shown as running, with no option to stop or delete them.
What is the expected behavior?

Subagents that have already stopped or no longer exist should be marked as completed and removed from the running list.

The Subagents panel should also provide an option to stop or remove stale subagent records.

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 stale entries through the Subagents panel on Windows, then inspect how subagent records and their running status survive a complete app restart. Done means orphaned subagents no longer remain in the running list and users have a way to stop, remove, or otherwise clear stale records.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.