Skip to content

Main agent keeps waiting after resumed subagent is no longer running #47949

Open

Description

@rafaself

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

26.915.31945

What subscription do you have?

Plus

What platform is your computer?

Linux 7.1.13-100.fc43.x86_64 x86_64 unknown

What issue are you seeing?

The main agent is not aware when the subagent stops unexpectedly.

Image

When the app crashes while the main agent is waiting for a subagent to finish, resuming the thread does not correctly recover the subagent state.

After reopening the app and clicking Play to resume the thread, the main agent resumes from its previous state and continues waiting for the same subagent. However, the subagent is no longer running.

The problem is that the main agent does not detect that the subagent was interrupted or terminated by the app crash. As a result, it can keep waiting indefinitely for a subagent that will never return a result.

What steps can reproduce the bug?

  1. Start a task where the main agent delegates work to a subagent.
  2. Wait until the main agent is waiting for the subagent to finish.
  3. Crash or close the app while the subagent is still running.
  4. Reopen the app.
  5. Click Play to resume the existing thread.
  6. The main agent resumes waiting for the previous subagent.
  7. The subagent is no longer running, but the main agent does not detect this and remains waiting.

What is the expected behavior?

When a thread is resumed after an app crash, the main agent should verify the state of any subagent it was waiting on.

If the subagent is no longer running or its execution was interrupted, the main agent should detect that condition and recover appropriately, for example by restarting the subagent, retrying the delegated task, or reporting that the previous subagent execution was lost.

Additional information

No response

Activity

  1. added
    app
    on Sep 24, 2026
  2. added
    bug
    subagent
    session
    on Sep 24, 2026
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

    appbugsessionsubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions