Skip to content

Chrome processes not cleaned up after execution on Windows #32462

Closed as not planned

Description

@cjlBelongGithub

Bug

On Windows 11, Codex CLI leaves orphaned Chrome processes running after codex exec completes. These processes consume significant CPU until manually killed.

Environment

  • OS: Windows 11
  • Codex CLI: latest (npm global)
  • Shell: git-bash (MSYS)

Steps to reproduce

  1. Run codex exec "..." on Windows
  2. After execution completes, check Task Manager
  3. Chrome processes remain running with high CPU usage

Expected behavior

Chrome processes spawned by Codex should be terminated when execution completes.

Actual behavior

Orphaned Chrome processes persist, consuming high CPU. Requires manual kill.

Workaround

Manually kill Chrome processes after Codex execution completes.

Activity

  1. added
    bug
    CLI
    windows-os
    exec
    on Jul 11, 2026
  2. github-actions commented on Jul 11, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. etraut-openai commented on Oct 12, 2026

    @etraut-openai
    Contributor

    (response from codex)

    Closing this older report for now because the current information doesn't identify which component owns the Chrome processes or provide a reproducible exec invocation. If this still occurs, please reopen with codex --version, the full sanitized command, the browser/MCP setup, and a process tree showing the Chrome command lines/parents before and after exec exits. Please avoid including profile or session secrets. We haven't established that the problem was fixed.

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

    CLIbrowserbugexecperformancewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions