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
Codex task becomes stuck if VS Code is closed while the agent is running #13459
If Codex is executing a task and VS Code is closed before the task finishes, the task becomes stuck when VS Code is reopened.
The Codex panel shows the task in a "Thinking" or running state. The Stop or Pause buttons do not stop the task and the agent does not recover from the interrupted session.
What steps can reproduce the bug?
If Codex is executing a task and VS Code is closed before the task finishes, the task becomes stuck when VS Code is reopened.
The Codex panel shows the task in a "Thinking" or running state. The Stop or Pause buttons do not stop the task and the agent does not recover from the interrupted session.
What is the expected behavior?
If VS Code is closed while Codex is running a task, the extension should either:
Cancel the running task automatically, or
Restore the task to a stoppable state when VS Code is reopened.
Additional information
Pressing Stop or Pause does not resolve the issue.
The task remains stuck in the UI and the agent appears unable to recover from the interrupted session.
If you're able to repro this, could you please use the /feedback slash command to upload the session when it's in this "stuck" state? Then post the thread ID here so I can review the session details.
Activity
github-actions commentedon Mar 4, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Mar 4, 2026
If you're able to repro this, could you please use the
/feedbackslash command to upload the session when it's in this "stuck" state? Then post the thread ID here so I can review the session details.bymehul commentedon Mar 4, 2026
@etraut-openai
Thread Id: 019cb9bd-86bc-7ef1-bde4-ded954540fe2
Video ref below:
output1.mp4