Skip to content

[macOS][Codex Desktop] Completed sub-agents remain under Running until opened #38533

Open

Description

@gut-puncture

What version of the Codex App are you using?

ChatGPT/Codex Desktop 26.810.41047 (build 6570)
Codex app-server 0.148.0-alpha.9

Platform

macOS 26.6.1 (25G76), arm64

What issue are you seeing?

Completed sub-agents remain listed under Running.

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

  1. Start several sub-agents in one chat.
  2. Allow one or more sub-agents to complete.
  3. Open the sub-agent list.
  4. Observe that completed agents are still under Running.
  5. Open one of those agents. Its detail view shows it has stopped/completed.
  6. 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.

Related reports

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    subagentIssues involving subagents or multi-agent features
    on Aug 14, 2026
  2. gut-puncture commented on Aug 14, 2026

    @gut-puncture
    Author

    Screen recording

    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.

  3. runningPHPer commented on Aug 21, 2026

    @runningPHPer

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingsubagentIssues involving subagents or multi-agent features

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions