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
Main agent keeps waiting after resumed subagent is no longer running #47949
appIssues related to the Codex desktop appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingsubagentIssues involving subagents or multi-agent features
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.
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?
Start a task where the main agent delegates work to a subagent.
Wait until the main agent is waiting for the subagent to finish.
Crash or close the app while the subagent is still running.
Reopen the app.
Click Play to resume the existing thread.
The main agent resumes waiting for the previous subagent.
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.
appIssues related to the Codex desktop appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingsubagentIssues involving subagents or multi-agent features
Activity