Skip to content

Codex remains running after window close on Windows and cannot reopen UI until process is killed #17770

@MauGal

Description

@MauGal

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

26.409.20454

What subscription do you have?

Plus

What platform is your computer?

Windows 11

What issue are you seeing?

When I disable an MCP server and then close Codex, the app window disappears but the Codex process remains alive in Task Manager. If I try to launch Codex again from the Windows Start menu, no UI appears. The only way to reopen Codex is to manually terminate the remaining Codex process in Task Manager and then start it again.

This looks like a shutdown / single-instance / window restore problem in the Codex app.

What steps can reproduce the bug?

  1. Start Codex on Windows.
  2. Have multiple MCP servers configured. In my case, digitaliso and playwright are active.
  3. Open MCP settings.
  4. Disable the digitaliso MCP.
  5. Click the restart/reload button in MCP settings.
  6. Check Task Manager:
    • before disabling, there are multiple mcp_digitaliso processes
    • after disabling/restart, all mcp_digitaliso processes disappear correctly
  7. Close Codex normally.
  8. Observe that the Codex window disappears, but the Codex process remains active in Task Manager.
  9. Try launching Codex again from the Start menu.
  10. No UI appears.
  11. Manually terminate the remaining Codex process in Task Manager.
  12. Launch Codex again: the UI appears normally.

What is the expected behavior?

Codex should fully exit when closed, or reopen its existing window correctly on the next launch.

Additional information

  • The MCP processes for digitaliso do terminate correctly after disabling that MCP.
  • This makes it look less like an issue in the custom MCP itself, and more like a Codex app lifecycle issue after MCP changes.
  • I also have the Playwright MCP enabled, so this may involve interaction with multiple MCP servers rather than a single custom server.
  • On this machine, the issue is reproducible enough that the workaround is to manually kill the remaining Codex process every time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serverswindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions