Subagents panel permanently shows completed agents as Active and Working
Nobody has claimed this yet.
- 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?
- Start a Codex task that creates multiple subagents.
- Allow every subagent to finish and return its final result.
- Continue using or later reopen the original task.
- Open the Subagents panel.
- Observe that completed agents remain listed under “Active” as “Working,” with durations that continue increasing.
- Close and restart the Codex app.
- Reopen the same task and Subagents panel.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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