You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[macOS][Codex Desktop] Completed sub-agents remain under Running until opened #38533
Opening one of those sub-agents shows that it has already stopped/completed. After returning to the sub-agent list, that same agent finally moves into Done.
This makes the running-agent count unreliable and makes it difficult to tell whether work is genuinely still active.
Steps to reproduce
Start several sub-agents in one chat.
Allow one or more sub-agents to complete.
Open the sub-agent list.
Observe that completed agents are still under Running.
Open one of those agents. Its detail view shows it has stopped/completed.
Return to the list. It now moves to Done.
Expected behavior
The list should move a sub-agent to Done as soon as its turn completes, without requiring the user to open that agent.
Diagnostic clue
The local desktop log records:
collab_hydration initially failing because a newly created rollout is temporarily empty.
Later turn/started and turn/completed events being received for an unknown conversation.
This suggests a possible hydration/state-registration race: after the initial empty-rollout failure, the conversation may not be registered, so later lifecycle events are discarded. Opening the child appears to force a fresh read and reconcile the displayed state.
Potential handling options could be retrying hydration after an empty rollout or buffering lifecycle events until the conversation is registered.
A short screen recording showing the deterministic UI sequence will be added in a follow-up comment.
Unrelated task content was redacted. The recording starts at Active 70 / Done 46. Opening the stale Workflow history audit entry shows Worked for 30s, and returning to the list immediately changes the counts to Active 69 / Done 47. No new agent completion occurred during that inspection; opening the already-completed child reconciled its status.
codex-subagent-status-repro-redacted.mp4
This appears closely related to #37729, with additional desktop-log evidence described in the issue body.
I can reproduce this on macOS in a long-running Codex Desktop task.
Observed behavior:
The Subagents panel lists many historical children as 处理中 / Working for 9–11+ hours.
I sent close requests for every child agent ID available to the runtime. The runtime reported the agents as already closed or no longer found.
The Desktop UI continued to render the same agents as active and kept increasing their elapsed time.
Opening the panel and attempting to close them again did not reconcile the display.
This appears to be a stale UI lifecycle state rather than active work, but it makes the panel unreliable and obscures the genuinely active child. I have screenshots showing the entries and elapsed times, available if useful.
Activity
github-actions commentedon Aug 14, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
gut-puncture commentedon Aug 14, 2026
Screen recording
Unrelated task content was redacted. The recording starts at Active 70 / Done 46. Opening the stale
Workflow history auditentry shows Worked for 30s, and returning to the list immediately changes the counts to Active 69 / Done 47. No new agent completion occurred during that inspection; opening the already-completed child reconciled its status.codex-subagent-status-repro-redacted.mp4
This appears closely related to #37729, with additional desktop-log evidence described in the issue body.
runningPHPer commentedon Aug 21, 2026
I can reproduce this on macOS in a long-running Codex Desktop task.
Observed behavior:
处理中/ Working for 9–11+ hours.This appears to be a stale UI lifecycle state rather than active work, but it makes the panel unreliable and obscures the genuinely active child. I have screenshots showing the entries and elapsed times, available if useful.