Skip to content

Codex task becomes stuck if VS Code is closed while the agent is running #13459

Open

Description

@bymehul

What version of the IDE extension are you using?

0.5.80

What subscription do you have?

Go

Which IDE are you using?

VS Code

What platform is your computer?

Linux 6.14.0-29-generic x86_64 x86_64

What issue are you seeing?

If Codex is executing a task and VS Code is closed before the task finishes, the task becomes stuck when VS Code is reopened.

Image

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:

  1. Cancel the running task automatically, or
  2. 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.

Activity

  1. added
    extensionIssues related to the VS Code extension
    on Mar 4, 2026
  2. etraut-openai commented on Mar 4, 2026

    @etraut-openai
    Contributor

    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.

  3. bymehul commented on Mar 4, 2026

    @bymehul
    Author

    @etraut-openai
    Thread Id: 019cb9bd-86bc-7ef1-bde4-ded954540fe2
    Video ref below:

    output1.mp4
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

    bugSomething isn't workingextensionIssues related to the VS Code extension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions