Skip to content

[Windows 26.1002.6548.0] Codex Desktop accumulates repeated MCP/CUA/node_repl process batches, reaching 200 Node helpers and ~11.6 GB private memory #51649

Open

Description

@Atletico1999

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

OpenAI.Codex 26.1002.6548.0

What subscription do you have?

ChatGPT Pro 20x

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Codex Desktop on Windows progressively accumulates repeated local Node/MCP/CUA/node_repl helper process batches while the same desktop app-server remains running.

The process count and private committed memory increase over time during normal multi-session Codex work. Eventually this creates severe Windows memory pressure and paging, and Codex sessions become dramatically slower.

In my workload, tasks that normally finish in tens of minutes can take 2–4 hours when multiple Codex/Claude sessions are active.

Observed Codex process accumulation

During one long-running Codex Desktop app-server session, I measured:

  • 200 Codex-owned Node-family processes in total
  • 110 MCP-related Node processes
  • 52 CUA Node processes
  • 38 node_repl processes
  • approximately 11.62 GB of private memory across those Node-family processes

The process creation timestamps showed repeated batches throughout the lifetime of the same app-server, including several bursts of exactly 11 processes.

Examples from the creation timeline:

2026-10-06 21:03    11
2026-10-06 21:06    11
2026-10-06 21:48    11
2026-10-06 22:35    11

The helpers were not simply the fixed startup cost of Codex.

Clean restart comparison

After fully exiting Codex Desktop:

  • the Codex app-server disappeared
  • Codex-owned node_repl/code-mode helpers disappeared
  • Windows committed memory dropped from 63.06 GB to 41.44 GB
  • this released approximately 21.62 GB of system commit

After starting Codex Desktop again, the clean baseline was only:

CodexNodeCount: 8

With three Codex sessions actively executing tasks, the process tree became:

NodeTotal          : 44
MCP                : 24
CUA                : 12
NodeRepl           : 8
NodePrivateGB      : 2.54
CodexTreePrivateGB : 3.30

No additional visible Codex session was started.

Approximately 10 minutes later, while the same three sessions were still running:

NodeTotal          : 55
MCP                : 30
CUA                : 15
NodeRepl           : 10
NodePrivateGB      : 3.18
CodexTreePrivateGB : 4.00

The increment was exactly:

+6 MCP
+3 CUA
+2 node_repl
= +11 processes

This looks like another complete local runtime/helper batch being created while previous batches remain resident.

System impact

The machine has approximately 32 GB physical RAM.

Before cleanup, under the full workload, I measured:

CPU average                : 70.73%
CPU maximum                : 100%
Available memory minimum   : 494 MB
Committed memory           : 87–90%
Pages/sec average          : 6585.5
Page Reads/sec average     : 918.7

Windows was under severe paging pressure.

Docker was initially also running and amplified the memory pressure, so I stopped Docker.

After Docker was stopped, system pressure improved substantially, but the Codex helper accumulation still reproduced:

Clean Codex start: 8 Node-family helpers
3 active sessions: 44 helpers
~10 minutes later: 55 helpers

Therefore Docker is not required to reproduce the Codex process accumulation.

There is no single application error dialog or explicit Codex error message. The observable failure is progressive helper-process accumulation, increasing committed/private memory, heavy paging, and severe degradation of Codex task throughput.

What steps can reproduce the bug?

  1. Fully exit Codex Desktop.

  2. Verify that the previous Codex app-server and its node_repl/code-mode helper tree have exited.

  3. Start Codex Desktop again.

  4. Immediately inspect the Codex app-server descendant processes. On my machine, a clean startup has approximately:

NodeTotal: 8
  1. Start several normal Codex sessions. In my reproduction I used three concurrently active sessions.

The tasks were normal software-development/agent tasks involving local tools. Reasoning effort was generally Low or Medium; Fast mode was not enabled.

  1. Periodically inspect the codex.exe app-server descendant process tree.

For example, the following PowerShell script counts the Node-family descendants and classifies them without printing complete command lines:

$all = Get-CimInstance Win32_Process

$root = $all |
    Where-Object {
        $_.Name -eq "codex.exe" -and
        $_.CommandLine -match "app-server"
    } |
    Select-Object -First 1

if (-not $root) {
    throw "Codex app-server not found"
}

$rootId = [int]$root.ProcessId

$desc = New-Object 'System.Collections.Generic.HashSet[int]'
$null = $desc.Add($rootId)

$changed = $true

while ($changed) {
    $changed = $false

    foreach ($proc in $all) {
        $childProcessId  = [int]$proc.ProcessId
        $parentProcessId = [int]$proc.ParentProcessId

        if (
            $desc.Contains($parentProcessId) -and
            -not $desc.Contains($childProcessId)
        ) {
            $null = $desc.Add($childProcessId)
            $changed = $true
        }
    }
}

$nodes = $all |
    Where-Object {
        $_.Name -in @("node.exe", "node_repl.exe") -and
        $desc.Contains([int]$_.ProcessId)
    }

$runtime = @{}

Get-Process -ErrorAction SilentlyContinue |
    ForEach-Object {
        $runtime[$_.Id] = $_
    }

$rows = foreach ($proc in $nodes) {
    $text = "$($proc.ExecutablePath) $($proc.CommandLine)"

    $category =
        if ($proc.Name -eq "node_repl.exe") {
            "node_repl"
        }
        elseif ($text -match "cua_node") {
            "CUA"
        }
        elseif ($text -match "mcp") {
            "MCP"
        }
        else {
            "Other"
        }

    $processId = [int]$proc.ProcessId
    $rp = $runtime[$processId]

    [pscustomobject]@{
        Category = $category
        PrivateMB = if ($rp) {
            [math]::Round($rp.PrivateMemorySize64 / 1MB, 1)
        }
        else {
            0
        }
    }
}

$rows |
    Group-Object Category |
    ForEach-Object {
        [pscustomobject]@{
            Category = $_.Name
            Count = $_.Count
            PrivateGB = [math]::Round(
                (($_.Group | Measure-Object PrivateMB -Sum).Sum / 1024),
                2
            )
        }
    } |
    Format-Table -AutoSize

"Total Node-family processes: $($nodes.Count)"
  1. With three active sessions, I observed:
NodeTotal: 44
MCP:       24
CUA:       12
node_repl:  8
  1. Approximately 10 minutes later, without starting another visible session:
NodeTotal: 55
MCP:       30
CUA:       15
node_repl: 10

This is an additional complete batch of:

6 MCP + 3 CUA + 2 node_repl = 11 processes
  1. During a longer app-server lifetime, allow normal Codex work to continue. In my earlier run the same app-server eventually reached approximately 200 Codex-owned Node-family processes and ~11.6 GB of Node private memory.

  2. Fully exit Codex Desktop.

The accumulated Codex helper tree is cleared and system committed memory drops substantially.

  1. Reopen Codex Desktop.

The process count returns to the clean baseline (approximately 8 on my machine), and then begins growing again as tasks execute.

Session/context information

This problem was observed across several concurrent Codex sessions rather than one specific prompt.

  • Concurrent visible sessions during the clean reproduction: 3
  • Reasoning effort: normally Low or Medium, rarely High
  • Fast mode: normally disabled
  • The issue appears related to local runtime/helper lifecycle rather than a specific model response or prompt
  • Session IDs are not included in this public issue, but I can provide relevant thread/session identifiers privately if maintainers need them

What is the expected behavior?

Codex Desktop should keep the number of local MCP/CUA/node_repl helper processes bounded.

A new task, tool turn, subagent, or runtime context should not indefinitely add another complete local helper/MCP process batch.

When a runtime is no longer needed, its local stdio MCP/CUA/node_repl process tree should be terminated or safely reused.

Long-running Codex Desktop usage with several sessions should not require periodically restarting the entire application to recover tens of gigabytes of committed memory.

The expected behavior is:

  • bounded helper-process count
  • reuse or teardown of obsolete runtime/MCP process pools
  • stable private/committed memory over long-running sessions
  • no progressive Windows paging or system-wide slowdown caused by retained Codex helper processes

Additional information

Codex app-server configuration

The affected Codex Desktop app-server was launched with this general command shape:

codex.exe
-c features.code_mode_host=true
app-server
--analytics-default-enabled
-c features.prefer_mxc=true
-c [email protected]_servers.codex_app.enabled=true
-c [email protected]_servers.code-review.enabled=true

No credentials or private project information are included above.

Hardware

  • approximately 32 GB physical RAM
  • DDR5-5600
  • Windows x64
  • Docker was stopped during the clean reproduction described above

Important A/B observation

Before fully exiting Codex:

CommittedGB: 63.06

After fully exiting Codex:

CommittedGB: 41.44

Difference:

~21.62 GB system commit released

After restarting Codex:

Initial Codex Node-family helper count: 8

The helper count then increased again as normal Codex work continued.

This makes the condition highly reproducible and strongly tied to the lifetime of the Codex Desktop app-server/process tree rather than permanent OS memory usage.

Possibly related existing reports

This may be related to the same Windows MCP/helper lifecycle problem reported in:

I am filing this separately because the issue is still reproducible on the much newer Codex Desktop version 26.1002.6548.0, and I have a clean restart baseline plus process-count/memory measurements showing the progression from 8 -> 44 -> 55 -> approximately 200 helpers during longer-running usage.

Activity

  1. added
    app
    on Oct 7, 2026
  2. added
    bug
    windows-os
    mcp
    on Oct 7, 2026
  3. Sambhav242005 commented on Oct 13, 2026

    @Sambhav242005

    Additional Windows measurements from 2026-10-13, shared with the user's authorization.

    Environment:

    • Windows 11 Pro, build 26200, x64.
    • Approximately 16 GB physical RAM.
    • Bundled Codex CLI/app-server reports codex-cli 0.162.0-alpha.17.2.
    • Desktop application version was not verified from the About dialog; the Chromium executable version is not being presented as the app version.

    Observed snapshots during normal desktop use:

    • 28 Codex-owned node.exe helpers with approximately 1,460 MiB of private committed memory.
    • A later snapshot showed 25 helpers with approximately 1,299 MiB private committed memory and 193 MiB resident working set.
    • Helpers included browser/CUA, local server, and REPL workers. All inspected helpers had existing parent processes.
    • These executables belonged to Codex's bundled runtime, rather than the separately installed Node.js used for the user's project. No project Node development server was running.

    The distinction between private committed memory and resident working set matters here: an earlier snapshot showed only about 5 MiB resident across the helpers, despite substantial private committed memory. Most of the allocation was therefore not resident at that instant; low resident memory alone did not establish low overall memory overhead.

    This is an additional observation of significant helper-process overhead on a 16 GB Windows machine. These snapshots do not establish monotonic process accumulation, a confirmed leak, that the helpers were obsolete, or how much physical RAM terminating them would recover. We did not terminate the helpers or perform a restart A/B comparison because they could support other chats and tools.

    Please investigate whether local helper pools can be reused or safely released when their associated tool contexts are no longer needed, and whether the app can expose an idle-helper cleanup option or memory diagnostics.

    No session transcripts, credentials, local usernames, project paths, or complete process command lines are included.

  4. medz commented on Oct 16, 2026

    @medz

    Additional macOS measurements, with a possible contributing mechanism in composer prediction forks. This is performance/resource-usage feedback; the trace does not establish a permanent memory leak.

    Environment

    • ChatGPT desktop 26.1013.31256, build 20586.
    • Bundled codex-cli 0.163.0-alpha.10.2.
    • macOS 27.0.1, arm64, 36 GiB RAM.
    • Several development chats/subagents were active, with XcodeBuildMCP, CUA, node_repl, code review, and Codex app tools configured.

    Measurements

    At 2026-10-17 00:23:59 UTC+08:

    Scope Processes Summed RSS
    Entire ChatGPT process tree 281 19.73 GiB
    19 helper cohorts correlated with temporary, non-persisted thread startups 151 8.56 GiB
    Representative prediction-related cohort A 8 ~373 MiB
    Representative prediction-related cohort B 8 ~394 MiB

    RSS includes shared pages. These totals are not exclusive physical memory, Activity Monitor footprint, or Windows private committed memory. We did not individually establish that all 19 temporary cohorts were composer predictions.

    Each representative cohort contained a code-review server, app-tools server, CUA server/child, node_repl helpers, and an npm launcher plus XcodeBuildMCP service. Their temporary turns completed at 2026-10-16 23:43:30 and 23:43:52 UTC+08, adjacent to corresponding cumberbatch prediction-decision log events. Both sets of helpers remained alive at 00:23:59, roughly 40 minutes after those prediction completions.

    During subsequent checks around 00:32 and at 00:33:55, all 16 tracked PIDs had exited. Across five older cohorts, 40 helper PIDs had exited, while the original app-server PID was unchanged. This diagnosis did not terminate those helpers or restart the application.

    Other development tasks continued throughout, so these observations are not an isolated A/B test and do not establish monotonic accumulation.

    Source-supported contributing mechanism

    Read-only inspection of the installed desktop bundle shows that composer_predictions uses an ephemeral fork with experimentalPredictionMode: true. Its shared generation helper calls unsubscribeThread in finally, ignoring errors.

    In the matching public tag, prediction forks inherit parent configuration, including client MCP extensions. Non-SubAgent sessions use Eager MCP startup. This provides a mechanism for short prediction requests to start a complete local toolchain even when they do not execute those tools.

    The normal lifecycle deadline and timer use the later of the no-subscriber and inactive timestamps, plus 1800 seconds, followed by session shutdown and removal. We did not capture the actual last-unsubscribe timestamp. Forty minutes after prediction completion alone therefore does not prove a retention-deadline violation.

    Could prediction forks retain the model's tool declarations and prompt-cache reuse while avoiding eager startup or extended retention of local tool processes they do not need to execute?

    The confirmed observation is substantial helper-process overhead, with a source-supported contributing mechanism. Permanent retention and a heap leak remain unproven.

  5. jaehyunseo-119 commented on Oct 17, 2026

    @jaehyunseo-119

    Additional Windows observations: helper accumulation and a short predictions-OFF comparison

    Adding Windows measurements to complement medz's prediction-fork analysis. These observations do not establish a permanent leak or a confirmed root cause.

    Environment and scope

    • Windows 11 Pro x64; ChatGPT Pro.
    • Installed Windows desktop package recorded during diagnosis: OpenAI.Codex_26.1013.4894.0 (package version, not CLI version).
    • Multiple development chats with MCP/CUA/REPL tools configured.
    • Follow-up measurements: October 18, 2026, UTC+09. During the initial text-only test, scheduled tasks and general inter-chat messaging were paused; only the bounded exchanges described below were requested. Concurrent development work and inter-chat coordination subsequently resumed, as distinguished in the later checkpoint. Diagnostic tools remained in use.

    During extended use, conversations became increasingly unresponsive. Restarting temporarily improved responsiveness and substantially reduced process counts. No OOM diagnosis was captured.

    Observations before disabling predictions

    Measurement scope Observation
    Historical snapshot: direct children of one codex.exe 258 total, including 116 cmd.exe, 59 node.exe, 50 node_repl.exe, and 29 uvx.exe
    Separate diagnostic run: system-wide node.exe snapshots 21 → 31 → 51 → 61
    Four tool processes temporally associated with one temporary fork Still alive approximately 17 minutes 36 seconds after its turn completed

    These are separate observations, not one continuous series. The system-wide Node counts are not a claim that every process belonged to Codex. The increasing batches included Codex tool runtimes; no project web-server listeners were found on the checked QA ports during that inspection.

    Logs recorded thread/fork and subsequent turn completion. The four retained processes were correlated by creation time and tool type, not an explicit thread-to-PID ownership mapping. Turn completion is not equivalent to thread teardown; this retention interval does not demonstrate a cleanup-deadline violation.

    After disabling Show predictions and restarting

    The setting was turned OFF through the UI, followed by a full application restart. An initial approximately 41-second observation showed node.exe remaining at 11, with no observed Node births/exits or new thread/fork records in the inspected logs.

    Four sequential text-only request/reply exchanges were then performed with one existing chat. The first exchange loaded another tool-runtime cohort: Node increased from 11 to 21. The receiving chat was instructed not to execute tools or resume project work.

    The three additional exchanges and a later development-work checkpoint were sampled as follows (all counts are system-wide for the named executables):

    Checkpoint (UTC+09) node.exe cmd.exe node_repl.exe uvx.exe
    04:39:42 — before additional exchanges 21 18 6 2
    04:40:16 — after exchange 1 21 18 6 2
    04:40:37 — after exchange 2 21 18 6 2
    04:40:55 — shortly after exchange 3 24 20 8 5
    04:41:29 — follow-up 21 18 6 2
    04:41:49 — final text-only check 21 18 6 2
    06:01:52 — after resuming concurrent development work¹ 126 97 36 12

    During the text-only test, all ten temporarily added processes had exited by the follow-up. The final text-only snapshot matched the baseline PIDs and creation timestamps. No additional thread/fork records were found in the inspected interval. The source of the transient processes was not conclusively identified.

    ¹ The 06:01:52 snapshot was taken approximately 80 minutes after the final text-only checkpoint, after concurrent development work had resumed with Show predictions still disabled. This was not continuous monitoring or an unchanged-workload comparison.

    At this checkpoint, 125 node.exe processes were identified by parent-process traversal as descendants of three Codex app-server processes, with approximately 8,773 MiB of summed private memory—not physical RAM usage. Two of those app-server processes had started after the text-only test. The earlier text-only test did not yield a valid comparable memory measurement, so no memory-growth delta is claimed.

    Despite the higher process counts, the previously observed delays, timeouts, and UI unresponsiveness had not recurred according to the user’s observation during approximately one hour of concurrent work. This supports improved responsiveness during the observed period, but does not establish that process growth stopped or that retained helpers were unnecessary.

    User-observed responsiveness after the change

    Since disabling Show predictions and restarting Codex, the previously recurring conversation delays, timeouts, and application sluggishness have not recurred during continued use up to this update. Conversations are currently responsive. This is a clear user-observed improvement, although the separate effects of disabling predictions and restarting have not been isolated.

    Interpretation and limitations

    The predictions-OFF run did not reproduce sustained accumulation during this short, text-only test. This is consistent with predictions contributing to the earlier behavior, but disabling predictions and restarting were simultaneous interventions, and the workloads were not identical. Diagnostic activity may also affect process creation.

    This does not establish causality, a permanent leak, a cleanup failure, or long-term stability under concurrent tool-heavy workloads. I am contributing the Windows observations and bounded follow-up rather than independently confirming the implementation mechanism described above.

    No credentials, private project paths, session identifiers, or raw logs are included.

  6. fkubrick commented on Oct 18, 2026

    @fkubrick

    Adding another Windows data point from October 18, 2026.

    Environment: Windows desktop package OpenAI.Codex 26.1013.4894.0, bundled CLI 0.163.0-alpha.10.2, approximately 31.6 GiB usable physical RAM, several development chats and local stdio MCP servers configured.

    Observed before any local mitigation:

    • System-wide physical memory in use: approximately 25.7 / 31.6 GiB.
    • 307 Node processes across the machine, with repeated MCP process families in the process inspection. This is a system-wide count, not a claim that all 307 processes were owned by Codex or unnecessary.
    • Codex became unresponsive and I had to restart it.
    • A subsequent snapshot after that restart showed approximately 14.1 / 31.6 GiB in use and about 86 Node processes. No MCP orphan was demonstrated in that post-restart snapshot.
    • A post-restart inspection still found 30 npm/npx launcher processes across six MCP families (five copies per family), with approximately 2.2 GiB of summed working sets for the launchers.

    Measurement limits: these were snapshots during real concurrent work, not an isolated A/B experiment or continuous growth trace. System memory changes cannot be attributed entirely to Codex. Summed working sets include shared pages and are not exclusive physical memory or private committed memory. Multiple MCP instances can legitimately belong to distinct clients. We have not established a permanent leak, a missed teardown deadline, an OOM event, or a link to composer predictions.

    The practical impact was application unresponsiveness requiring a restart. It would be useful to investigate the startup/retention cost of local MCP servers and npm/npx wrappers, including deferred startup until first use and bounded teardown of unused runtimes. Any reuse would need to preserve per-session state and credentials.

    Only sanitized aggregate observations are included; no local paths, project names, credentials, session IDs, screenshots, or raw logs are attached.

  7. pozafly commented on Oct 19, 2026

    @pozafly

    Adding a macOS observation that complements the prediction-fork findings above.

    Environment: Codex Desktop 26.1013.40934, bundled CLI 0.163.0. Composer predictions remained enabled. I set thread_unload_delay_secs = 300 and restarted the app before the observation.

    • Each observed composer prediction fork was associated with a fresh cohort of local MCP/helper processes, correlated using prediction logs, process start times, and parentage. In this setup, each cohort contained five Node-family processes: two node_repl processes, two Node MCP servers, and one CUA launcher. There was also a native event-stream helper outside that Node count.
    • For three tracked prediction cohorts, lifecycle logs recorded idle/no-subscriber shutdown approximately 300 seconds after prediction completion, and their corresponding processes actually exited.
    • The Node-family process count fell from 30 to 15 as those three cohorts were removed. The same app-server remained running throughout; no processes were killed and the app was not restarted during this observation.

    So this observation demonstrates repeated startup and temporary retention overhead, rather than establishing a permanent process leak. Reducing the unload delay limits how long these cohorts accumulate, but does not prevent a new cohort from starting for each prediction.

    Could prediction forks skip or defer local MCP/helper startup while preserving composer predictions and normal chat tool access? Predictions are useful; a prediction-specific exemption would address this overhead without disabling the feature globally.

    Personal information, local paths, process/thread identifiers, and raw logs have been omitted.

  8. henrikogaard commented on Oct 19, 2026

    @henrikogaard

    Additional macOS observation: ChatGPT desktop 26.1013.40934, build 20770; bundled Codex CLI 0.163.0-alpha.10.2; macOS 27.0.1.

    After a normal conversation response, a temporary composer_predictions fork started a separate tool-worker bundle. The prediction completed after approximately 12 seconds. Six associated Node/Node REPL processes remained alive approximately 21 minutes later, with a summed vmmap physical footprint of about 192 MiB.

    Backend logs show shutdown of the temporary thread exactly 30 minutes after prediction completion. All six workers subsequently exited without intervention, while the original app-server and conversation workers remained running.

    This observation supports substantial temporary tool-runtime overhead, not a permanent leak or failed cleanup. Please investigate avoiding tool-process startup for composer predictions that do not use tools, or releasing their runtime resources sooner.

    This was a read-only investigation of one observed prediction lifecycle, not an isolated repeated reproduction.

  9. MaksymShostak commented on Oct 19, 2026

    @MaksymShostak

    Additional Windows incident evidence from October 19, 2026, posted with the workstation owner's authorization. Adding to this existing report rather than opening another duplicate; also relevant to #53285.

    Environment verified during follow-up

    • Windows 11 Pro x64, build 26300; approximately 31.7 GiB usable physical RAM.
    • Installed Windows package: OpenAI.Codex_26.1013.4894.0_x64.
    • Executing Desktop backend: codex-cli 0.163.0-alpha.10.2.
    • The same Desktop codex.exe app-server had been running since approximately 09:26 local time (UTC+03).

    Incident and recovery recorded in the owner's local diagnostic report

    At approximately 17:00, the report recorded roughly 1,100 processes across Windows, with approximately 800 classified as Codex/MCP-related. Reported instance counts included:

    Process Reported count
    node.exe 234
    conhost.exe 265
    node_repl.exe 97
    cmd.exe 163–164
    github-mcp-server.exe 37

    Repeated command families included Chrome DevTools through cmd /c npx, GitHub MCP stdio, CUA/Node REPL, Codex Security, Codex App Tools, and Code Review. The report recorded approximately 29–35 copies of several server/launcher families beneath one live app-server. Severe workstation sluggishness was observed.

    The report's recovery at approximately 17:07 explicitly terminated 520 selected tool/launcher processes while retaining the app-server. Its before/after snapshots recorded:

    • total host process count: approximately 1,100 → 358;
    • available physical memory: approximately 4.07 → 11.73 GiB;
    • console hosts: 265 → 20;
    • Node processes: 234 → 11;
    • Node REPL: 97 → 0;
    • GitHub MCP: 37 → 0.

    The report summed approximately 23.8 GB of working sets before cleanup. That is not exclusive physical-memory attribution: shared pages may be counted multiple times. The observed approximately 7.66 GiB increase in available memory is a separate host-level before/after measurement during a live workload, not an exact per-component accounting.

    Independent read-only follow-up

    At 17:13 local time, I verified the original app-server PID and creation timestamp were unchanged. A fresh parent/child traversal found 121 descendants (35 direct children), including seven GitHub MCP processes with creation times after 17:07, eleven node_repl.exe processes, and repeated DevTools/tool families. The host had 442 processes and approximately 10.61 GiB available physical memory.

    Other chats and diagnostic work were active. This follow-up establishes that helper processes were being created again under the same app-server after the reported cleanup; it does not establish that these newly created instances were obsolete or leaking.

    Interpretation and requested investigation

    The raw pre-cleanup per-PID capture was not included in the supplied report. Its stronger claims of universal orphaning, missing stdin-EOF handlers, missing Job Objects, and a proven permanent leak are therefore not independently established by this submission. A live app-server surviving child termination also does not prove every terminated child was unused.

    The matching public configuration schema documents thread_unload_delay_secs with a default of 1800 seconds, and unloading depends on both inactivity and no subscribers. The workstation's inspected user config has no override. Turn completion alone cannot establish that a teardown deadline was missed. No controlled HISEW-on/off or predictions-on/off reproduction was performed.

    HISEW Dev 0.1.0-dev.27 is installed on this workstation. Its installed manifest declares skills and SessionStart/Stop hooks, with no MCP server declaration. Its review workflows can cause additional agent sessions, so workload amplification is possible, but this evidence does not attribute the retention defect to HISEW.

    Please investigate bounded lifetime/ownership for normal, subagent, and internal temporary sessions; avoid starting full local tool bundles for prediction/summary work that does not use them; and expose enough runtime ownership to distinguish actively needed workers from retained pools. Windows process-tree containment remains relevant at actual shutdown, but it would not by itself reclaim runtimes that Codex deliberately keeps alive.

    No credentials, raw logs, session identifiers, local usernames, or private project paths are included. The incident measurements above are explicitly distinguished from the fresh follow-up and from causal hypotheses.

  10. jordanlein commented on Oct 19, 2026

    @jordanlein

    Adding a related Windows data point, with the workstation owner's authorization. Detailed measurements and limitations are in #53285 (comment) to keep the full report in one place.

    On Windows 11 Pro build 26300, desktop package 26.1013.4894.0, a live Codex process tree contained 24 node.exe helpers and 12 MATLAB MCP processes arranged as six parent/child pairs with distinct creation-time batches under the same backend. Several groups also included Firebase and computer-use helpers.

    Summed desktop-tree working set/private bytes were 6692/6345 MiB before restart, 5591/5502 MiB after the user terminated and reopened Codex, and 5145/4838 MiB after MATLAB MCP removal. Corresponding node.exe counts were 24 -> 19 -> 10; MATLAB connector counts were 12 -> 4 -> 0. Two new helper batches appeared within approximately the first minute after reopening.

    These are interactive diagnostic snapshots, not an isolated workload comparison. Shared pages are double-counted in summed working sets; private bytes are commit, not physical RAM. The observed decreases and cleanup do not establish a permanent leak or that retained helpers were unnecessary. The useful signal is repeated startup/retention overhead on this version, with a measured restart comparison.

  11. efrasmsq-sudo commented on Oct 19, 2026

    @efrasmsq-sudo

    Windows confirmation: composer prediction forks initialize MCP runtimes (2026-10-19)

    Adding a source/runtime correlation to this existing report with the workstation owner's explicit authorization. This identifies a concrete contributing mechanism, not proof of a permanent leak or attribution of every helper process.

    Verified environment: Windows x64; MSIX package 26.1013.4894.0; packaged desktop application 26.1013.40934; executing backend codex-cli 0.163.0-alpha.10.2. This was an existing, long-running profile with multiple configured MCP integrations, not an isolated clean-install workload.

    Local runtime evidence

    • Main-process logs recorded several successful cumberbatch_safety_decision events for composer predictions in the active conversation during the diagnostic window.
    • Backend tracing independently recorded rpc.method="thread/fork" -> thread_spawn -> session_init.mcp_manager_init -> MCP client initialization for multiple configured servers.
    • This establishes actual prediction activity and actual MCP startup within fork handling, not merely installed/enabled tools. A complete unique prediction-thread-to-worker-PID ownership map was not obtained, so it does not attribute every observed cohort to predictions.

    Installed implementation and matching-version source

    Read-only inspection of the shipped desktop JavaScript found:

    1. The prediction controller creates a fork with experimentalPredictionMode: true, ephemeral: true, and threadSource: "composer_predictions".
    2. In the shared structured-response helper, that experimental branch inherits the parent instead of supplying the configuration overrides used by the other fork branch.
    3. Its finalizer calls unsubscribeThread; it does not request immediate runtime destruction. Unsubscribe errors are caught without surfacing a cleanup failure.

    The corresponding public version provides the rest of the lifecycle mechanism:

    That allows repeated predictions to retain overlapping tool-runtime cohorts even when no extra task is visible. The 30-minute value is a source-confirmed default, not a measured teardown deadline or demonstrated missed deadline on this workstation. The public tag matches the backend's reported version; this is not a bit-for-bit build provenance claim.

    Requested fix and evidence limits

    Please avoid initializing full MCP/tool runtimes for prediction-only work that does not use tools, and release temporary-fork resources promptly through a bounded lifecycle. Expose runtime ownership so users can distinguish active workers, deliberate retention, and failed cleanup without periodically terminating processes.

    No predictions-OFF controlled comparison or full idle-to-shutdown lifecycle was performed here. No claim is made that this mechanism explains all CPU use, all helpers, or a permanent leak. The concurrent access-denied catalog retry loop is reported in #53677, not established as the trigger for MCP spawning.

    Intervention disclosure: selected helper processes had been terminated earlier in this incident. At least one later transport-closed error followed that cleanup and must not be used as evidence of the original defect. The subsequent source/runtime investigation did not repeat process termination or modify installed code, credentials, databases, caches, or security settings.

    Privacy: no raw logs, private chat/request/account IDs, prompts, project names, personal paths, process command lines, credentials, screenshots, or attachments are included.

  12. stud0709 commented on Oct 21, 2026

    @stud0709

    Windows follow-up: 26.1016.6573.0 / 0.163.0-alpha.11 (2026-10-21)

    Adding measured evidence with the workstation owner's explicit authorization, rather than opening a duplicate. Repeated helper accumulation remains observable on a newer desktop/backend version.

    Verified environment

    • Windows 11 Pro x64, build 26300; 31.46 GiB usable physical RAM.
    • Installed MSIX package: OpenAI.Codex 26.1016.6573.0.
    • Executing desktop backend reports codex-cli 0.163.0-alpha.11.
    • The original desktop root and original backend remained alive from approximately 09:10 UTC through the measurements below. There were three codex.exe processes in the later desktop tree; these totals are for the desktop tree, not an assertion that every helper belongs to one backend or chat.

    Measured process-tree growth

    Parent/child traversal used PID plus process creation time to reject reused-parent identities. All counts below are attributable to that desktop root, rather than machine-wide executable counts. The root itself is included in the total.

    Process 09:14:22 UTC 10:19:12 UTC
    Total processes 123 492
    node.exe 31 150
    node_repl.exe 15 57
    cmd.exe 18 107
    conhost.exe 39 151
    ChatGPT.exe 15 21
    codex.exe 2 3

    The later snapshot had 22 direct children, 491 total descendants, 4,897 threads and 89,108 handles. Its summed working sets were 18.782 GiB and summed private bytes were 16.486 GiB. Summed working sets double-count shared pages; private bytes represent commit, not resident physical RAM. The owner separately observed roughly 19-20 GiB in Task Manager's application group. These metrics are not interchangeable.

    At 10:19, the Node groups included 21 Chrome DevTools servers plus 21 launchers (approximately 4.014 GiB private bytes combined), 38 mcp-remote launcher/adapter processes (3.153 GiB), and 48 relative server.mjs runtimes (3.497 GiB). A subsequent command/ancestry sample showed 22 DevTools pairs, 20 CUA runtimes, 20 local MCP adapter/launcher pairs, and 50 server.mjs runtimes. The snapshots were taken at different times; these counts are not combined into one inventory.

    The corresponding shells were predominantly wrappers: a later sample found 70 cmd.exe processes parented by codex.exe and 42 by Node.

    Short inactivity comparison

    Between 10:20:14 and 10:21:04 UTC, 107 of the initial 112 shells survived with the same PID/creation identities. Of those, 100 had unchanged CPU and I/O counters. Eighty shell trees also had unchanged counters for their observed descendants, with no new descendants present at the second sample. Twenty quiet shells had active/changing children. Some quiet shells were approximately 69 minutes old; process age does not establish 69 minutes of inactivity. Two snapshots cannot detect every transient process between samples.

    Workload and limits

    • This was an existing interactive profile, with a coordinator, at most one issue worker at a time during the observation, and another development/browser chat that was initially dormant and later active. Diagnostics and browser navigation also occurred. It was not an isolated workload or clean-install reproduction.
    • In one interval before the worker's actual test gate began, Node counts rose from 69 to 120 and native Node REPL counts from 28 to 45. This prevents attributing all growth to test execution, but does not uniquely identify the responsible chat, tool call or background task.
    • A controlled test run's 57 specifically attributed children were subsequently verified drained using PID/creation identities, while generic desktop helper counts remained high. That is not proof that all remaining helpers were obsolete.
    • Idle memory sometimes declined substantially, then rose again after interaction. We have not demonstrated an indefinitely retained heap, missed unload deadline, orphan status, or a unique owner mapping for every runtime group.
    • No helper termination, installed-code edits, history/database deletion or MCP configuration changes were performed during these measurements. Two bounded lightweight samplers and read-only diagnostic commands contributed small observer overhead.

    The prediction-fork observations already posted in this issue are a useful lead, but predictions were not disabled for an A/B comparison here, and no local trace proves that predictions caused these particular groups. The next proposed mitigation is the supported Show predictions toggle off, followed by a full application exit/relaunch and a fresh comparison. This has not yet been performed or verified on this workstation.

    Please investigate bounded tool-runtime startup/retention and expose owning thread/source and unload deadlines, so active helpers can be distinguished from retained background cohorts without unsafe process-wide cleanup.

    Privacy: this update contains no raw logs, screenshots, personal paths, project/source contents, private chat/account IDs, process command lines, credentials or attachments. Detailed local originals remain preserved.

    Post-restart / predictions-OFF follow-up (same day)

    The owner disabled the supported Show predictions setting and fully restarted the desktop app. A bounded follow-up used only the current chat, basic read-only tool calls and a lightweight sampler; the owner did not switch chats, and issue workers, browser operations and new subagents stayed stopped.

    Seventeen snapshots over approximately 8 minutes 15 seconds (10:39:42-10:47:57 UTC) showed:

    Metric First Last
    Desktop-tree processes, including root 66 44
    Node processes 15 8
    Native Node REPL processes 5 3
    Summed private bytes (GiB) 3.736 2.887
    Summed working sets (GiB) 4.645 3.787

    Private-byte range during this short capture: 2.821-3.745 GiB. No process termination was performed. Some helpers disappeared naturally; progressive helper accumulation was not observed in this window.

    This is encouraging mitigation evidence, not a controlled predictions-ON/OFF comparison or proof of a permanent fix: restart and the setting changed together, workload was narrower, and the window was short. The two memory metrics retain the accounting caveats above. Longer observations will use an independent external process sampler so assistant monitoring itself need not wake additional sessions.

    Follow-up: selecting idle desktop chats

    Disabling Show predictions and restarting reduced the initial footprint, but did not eliminate later helper-process bursts. The same Windows desktop installation was sampled independently at roughly 15-second intervals, using PID plus creation-time identities and ancestry. The recorder itself runs outside the app process tree.

    During a later window the user selected several existing desktop chats whose issue-processing tasks remained idle. One separately authorized test job was running. The attributed desktop process tree rose from 134 processes / 6.76 GiB summed working sets to a sampled peak of 267 / 11.98 GiB. A later sample contained 247 processes / 11.10 GiB. Between the baseline and that later sample:

    • Node processes increased from 37 to 74, adding approximately 3.06 GiB of working sets.
    • Command shells increased from 25 to 53, console hosts from 37 to 73, and REPL processes from 11 to 22.
    • Five currently matched child identities belonging to the authorized test job accounted for about 0.30 GiB; this excludes its separate runner/observer overhead.

    An earlier recovered baseline was 47 processes / 3.61 GiB. Later, before this click-through burst, it was 139 / 6.70 GiB. Of the new surviving processes, 48 created around activation of another existing desktop chat were still present approximately 43 minutes later, totaling about 1.85 GiB working sets.

    These observations support investigating helper initialization/retention when selecting chat views, in addition to prediction-related startup. They do not identify the internal trigger or establish a permanent leak. The recorder does not collect command lines or per-chat ownership; process totals include all attributed descendants. Summed working sets can double-count shared pages, and private bytes measure commit rather than physical RAM. UI-reported peaks and this sampled metric are not directly interchangeable. No processes were killed to manufacture recovery, and no raw logs, arguments, credentials or workspace paths are attached.

  13. roddopasth-ai commented on Oct 21, 2026

    @roddopasth-ai

    Additional Windows reproduction from one visible Codex chat (2026-10-21), shared with the workstation owner's authorization.

    Environment: Windows desktop, Codex package OpenAI.Codex_26.1016.6573.0. Only one visible chat was open for this investigation.

    Observed process ancestry and work:

    • Two codebase-memory-mcp.exe server instances were children of the same codex.exe app-server (same parent PID).
    • They started about 14 seconds apart.
    • Each spawned an --index-worker index_repository child indexing the same local repository.
    • The user confirmed there was only one visible chat and terminated one of the indexers; one remained. This does not establish the internal trigger, but rules out the assumption that the user intentionally had two visible project chats.
    • In a later Task Manager snapshot, the grouped codebase-memory-mcp.exe (2) entry showed about 13.6 GB and 21.1% CPU. Earlier per-worker samples were around 12 GB working set each; these are time-varying working-set readings and should not be summed as unique physical RAM.

    Comparative observation from that same Task Manager screenshot:

    • ChatGPT process group: about 1.15 GB.
    • DeepSeek Harness process group: about 406 MB.
      These groups were doing different work and are not a controlled apples-to-apples benchmark. They do show that, in this observed workload, Codex's local MCP/indexing overhead was substantially larger than the other visible agent group.

    Please investigate why one app-server can start overlapping codebase-memory MCP/index workers for the same repository, how to bound their CPU/memory cost and reuse a fresh index, and how Codex can expose an accurate per-agent/runtime memory breakdown. No local repository path, screenshot, chat IDs, or credentials are included.

  14. roddopasth-ai commented on Oct 21, 2026

    @roddopasth-ai

    Additional idle-state observation from the workstation owner (Windows, 2026-10-21), shared with authorization.

    The attached Task Manager screenshot was taken while no Codex task/chat was actively running according to the owner. It shows:

    • The grouped codebase-memory-mcp.exe (2) processes at approximately 5,228 MB and 8.4% CPU.
    • The visible codex.exe row at 0% CPU and approximately 219 MB.
    • The ChatGPT app group at approximately 1,066 MB and 2.0% CPU; DeepSeek Harness at approximately 396 MB and 0.8% CPU.

    This supports the report that local MCP/indexing helpers can retain substantial memory and CPU while the user sees no active task. The screenshot is a single snapshot: it cannot establish how long the usage persisted, identify each helper's owner, or rule out background app activity. The app and agent group figures are not a controlled cross-agent benchmark.

    Please investigate idle MCP helper retention and expose which session/runtime owns each process, whether it is actively doing work, and its memory/CPU use, with safe cleanup when no task needs it. No screenshot or private project paths are attached.

  15. Nagi-Inaba commented on Oct 21, 2026

    @Nagi-Inaba

    Additional Windows measurements: 26.1016.6573.0 / 0.163.0-alpha.11 (2026-10-22 JST)

    Adding evidence to this existing issue with the workstation owner's authorization.

    The owner reports persistent sluggishness/freezes and states that no ordinary Codex work is currently running. A diagnostic chat and read-only process inspection were active during collection, so this is not a controlled idle test.

    Verified environment

    • Windows 11 Pro x64, build 26200; Intel Core i7-9700; 31.744 GiB usable physical RAM.
    • Running executables belong to the installed OpenAI.Codex 26.1016.6573.0 package. This is the MSIX version, not an About-dialog version.
    • The executing desktop backend binary reports codex-cli 0.163.0-alpha.11.
    • OS boot: approximately 01:40 JST; the main desktop backend started approximately 01:41 JST.

    Snapshot at 2026-10-22 02:33 JST (2026-10-21 17:33 UTC)

    Process attribution used package/backend executable paths and parent-child traversal with PID plus creation time to reject reused-parent identities.

    Metric Observed
    All Windows processes 946
    Attributed Codex desktop/backend/helper processes 734
    Codex-tree private committed bytes 20.823 GiB
    Codex-tree summed working sets 17.244 GiB
    System available physical RAM 12.605 / 31.744 GiB
    System committed memory / commit limit 29.128 / 63.744 GiB

    Within the attributed Codex tree:

    Executable Count
    conhost.exe 238
    node.exe 139
    python.exe 129
    cmd.exe 83
    node_repl.exe 49
    uv.exe 19
    uvx.exe 19
    py.exe 19
    ChatGPT.exe 15
    codex.exe 2

    Direct children of the desktop backends included repeated instances of several configured MCP/helper families: 17 code-review-graph launchers, 20 textlint launchers, 15 CUA launchers, and 19 launchers each for several other configured local services. Earlier inspection placed the bulk of these helpers under one unchanged desktop backend. Creation times span roughly 01:42–02:23 JST, consistent with multiple retained startup cohorts. A targeted earlier helper sample had valid parent identities; we did not demonstrate Unix-style zombie processes or establish that each helper was obsolete.

    Dots / prediction hypothesis and limits

    The owner suspects Dots involvement. We have not attributed these cohorts to individual Dot tasks, performed a Dots-on/off comparison, or correlated them with composer-prediction events. The prediction-fork observations already discussed above are a relevant investigation lead, not a confirmed explanation of this workstation's data.

    Counts fluctuated during diagnosis; the machine-wide process count fell from 987 in an earlier snapshot to 946 here without intentional termination. These observations do not establish monotonic growth or a permanent leak. Private bytes measure commit, and summed working sets double-count shared pages; neither is an exclusive physical-RAM measurement.

    There are additional system confounders: the system volume has only about 5 GiB free, and Windows has a LiveKernelEvent 141 report (display-engine timeout). Current physical RAM usage was about 60%, so we are not claiming ongoing RAM exhaustion at this exact snapshot or attributing all freezes to Codex.

    Please investigate runtime ownership and teardown/reuse of repeated MCP/CUA/REPL cohorts, including whether Dot activity or temporary prediction contexts retain tool runtimes after visible work stops.

    Process snapshots and the owner's Task Manager screenshots were preserved locally before the authorized full Codex shutdown. This comment records pre-shutdown evidence; recovery measurements are not yet available. No screenshots, raw logs, command lines, credentials, account/session IDs, host name, or private workspace paths are attached.

  16. Nagi-Inaba commented on Oct 21, 2026

    @Nagi-Inaba

    Follow-up: helper cohorts reappear after full exit and relaunch; thread-loading and retention evidence

    Following up on my pre-shutdown measurements, with the workstation owner's explicit authorization.

    Recurrence after relaunch

    The desktop was closed and the owner relaunched it at approximately 2026-10-22 02:40:14 JST (2026-10-21 17:40:14 UTC). The desktop backend started at approximately 17:40:24 UTC.

    A later identity comparison found zero surviving matches among the 748 recorded pre-shutdown target identities, using PID plus creation time. The helpers seen after relaunch were newly created, including the console hosts visible in the owner's screenshots.

    Snapshot, UTC Codex-tree processes node.exe python.exe cmd.exe conhost.exe
    17:43:46, about 3.5 minutes after relaunch 338 69 53 43 108
    17:48:51 455 93 75 58 145
    17:56:16 417 87 67 55 132

    At 17:48:51 the attributed tree had 12.544 GiB private commit, with several local MCP launcher families repeated 10 times and others 12 times. At 17:56:16 it had 11.842 GiB private commit, with corresponding families at 9 and 11. Counts can fall without intervention; this is not evidence of monotonic growth or a permanent leak.

    The original post-exit recorder stopped before saving its after-exit result. Therefore there is no immediate post-exit/clean-start memory baseline. The comparisons above are post-relaunch diagnostic observations, not a controlled idle benchmark.

    What the runtime logs establish

    • Between 17:40:41 and 17:41:10 UTC, the local Codex Desktop client resumed seven distinct persisted chats: three classified as user and four as automation history. These classifications do not establish that those automation jobs actually ran.
    • Multiple MCP launcher cohorts were created around those loads. A representative textlint launcher timeline includes 17:40:41, 17:40:49, 17:40:57–59, and 17:41:00/04/09 UTC.
    • The same desktop client also issued thread/fork requests around 17:40:51 and 17:45:06 UTC. The resulting thread identities were absent from the persisted thread catalog. The second fork coincided with another fresh local MCP cohort.
    • At 17:46:50 and 17:46:52 UTC, a separately labeled client, codex_chatgpt_ios_remote, resumed two more chats. Their request traces explicitly contain thread_spawn -> session_init -> session_init.mcp_manager_init; new MCP cohorts were created at those times.

    This supports investigating per-loaded-thread MCP initialization and retention, including loading existing chats without starting an ordinary user task. It does not establish a one-to-one owner mapping for every process.

    Installed desktop implementation provides a retention explanation

    Verified versions: MSIX 26.1016.6573.0; installed application metadata 26.1016.51333; executing backend 0.163.0-alpha.11.

    Read-only inspection of the installed JavaScript bundle found:

    1. The inactive-owner-thread unsubscriber uses a 10-thread threshold and a 10,800,000 ms (3 hour) inactivity TTL. Eligible ordinary inactive owners over the threshold, or eligible candidates whose TTL expires, are selected for unsubscribe. Active views, owned stream followers, and other keep-loaded conditions are excluded. This is not a hard cap of 10 MCP instances or an immediate process-termination rule.
    2. Composer prediction generation uses an ephemeral experimentalPredictionMode fork with threadSource: composer_predictions. The generation helper unsubscribes in its final cleanup rather than explicitly shutting down the runtime. The prediction setting is defined as enabled by default; no explicit override was found in the inspected persisted atom settings.
    3. The observed temporary forks are consistent with that additional mechanism, but the collected logs do not identify their source as composer predictions. That attribution remains an inference.

    For context, the published upstream lifecycle implementation requires both no subscribers and inactivity before unloading, and the published config documents a separate default 1800-second unload delay. That upstream commit is context, not a claim that its backend is byte-identical to this installed alpha or that the effective unload delay was measured.

    Dots attribution remains unconfirmed

    The owner suspects Dots, but no collected request was positively attributed to a Dot. The seven initial local-desktop resumes and their cohorts precede the recorded iOS remote resumes. The iOS client label must not be treated as proof of Dot activity. No Dot-disconnected A/B test was performed. A remote subscriber extending runtime lifetime is an investigation lead, not an established cause here.

    Please investigate avoiding eager MCP initialization when merely restoring/observing inactive chats, reducing or making the inactive-thread retention cost visible/configurable, and exposing per-thread/helper ownership. The recurrence is observable after relaunch, with both local loading and remote-resume paths implicated in additional runtime initialization.

    The diagnostic assistant did not change settings, disable integrations, terminate processes, or intentionally start additional chats/tasks for a reproduction. Only sanitized counts/timestamps and implementation observations are posted; screenshots, raw logs, private thread/account IDs, command lines, and workstation paths remain local.

  17. Nagi-Inaba commented on Oct 22, 2026

    @Nagi-Inaba

    Further recurrence after a Windows reboot; plugin identity and app-managed MCP activation

    Another update from the same Windows workstation, with the owner's authorization. This is a partial local mitigation, not a claim that Desktop's MCP lifecycle is fixed.

    The OS booted at approximately 2026-10-22 11:20:27 JST. Codex Desktop's backend started at approximately 11:25:14 JST. At 11:26:32 JST (02:26:32 UTC), the validated Codex descendant tree contained:

    Measurement Value
    Processes 214
    node.exe 62
    node_repl.exe 18
    cmd.exe 46
    conhost.exe 69
    python.exe 0
    Total private commit 8.116 GiB
    node.exe private commit 4.694 GiB

    Private commit is not resident RAM; summed working sets are not used as an exclusive physical-memory measure. This was a live diagnostic session, not a controlled idle benchmark. At 11:44:29 JST there were 202 Codex-tree processes and 7.151 GiB private commit, so some cleanup does occur.

    Why an initial plugin policy change did not stop the recurrence

    The external Python MCPs had been disabled in user config and did not return in this snapshot. However, disabling the MCP parts under build-ios-apps@openai-curated, codex-security@openai-curated, and creative-production@openai-curated did not affect the actually installed remote identities. plugin/list subsequently confirmed build-ios-apps@openai-curated-remote, codex-security@openai-curated-remote, and creative-production@openai-curated-remote.

    After the reboot, there were still multiple direct launcher groups for XcodeBuildMCP and Codex Security. Those processes were newly created by Desktop's backend, not survivors of the pre-reboot process tree. XcodeBuildMCP was starting through npx -y xcodebuildmcp@latest mcp on this Windows machine without an Apple-build task in this diagnosis.

    The MCP policies have now also been set on the actual @openai-curated-remote identities, while retaining the installed plugins and skills. A new ephemeral instance of the installed app-server, using the Desktop client name and checking actual process families, did not start XcodeBuildMCP/Security/Creative Production after this correction. This narrow probe does not establish that a subsequent full GUI session is clean; that verification is still pending.

    App-managed paths that a static user-config edit does not address

    • The installed desktop bundle regenerates mcp_servers.node_repl using config/batchWrite during browser/computer-use setup. The setting that had been disabled was enabled again after app startup; this is confirmed in the current config, not just inferred from the source.
    • The actual desktop app-server command line explicitly supplies [email protected]_servers.codex_app.enabled=true and [email protected]_servers.code-review.enabled=true.
    • thread_unload_delay_secs=60 has been saved as a local mitigation. A bounded 2-second test with the installed backend confirmed that unsubscribed inactive-thread helpers can exit. This does not release threads that the GUI continues to subscribe to; the installed GUI's inactive-owner retention described in my previous comment is a separate mechanism.

    On-demand workaround being validated locally

    The optional stdio MCPs can instead be called through a local, bounded runner that starts a server only for a requested batch or interactive session. Same-server invocations are serialized. Windows Job Objects terminate descendants on normal exit, exceptions, timeout, and caller termination; interactive sessions also expire when idle. Real textlint calls, installed-server catalog access, explicit close, idle expiry, forced caller termination, and grandchild cleanup have been tested. This adds no daemon or listening port. It is a workaround for optional local tools, not an implementation of lazy activation inside Desktop.

    There is still no direct evidence attributing these repeated Desktop-owned batches to Your dot/Dots or Sites. A separate Sites bridge process cannot by itself explain the measured descendant tree; an indirect effect on which threads are loaded remains possible and has not been excluded.

    For a product-level fix, it would help to have actual demand-start/idle-stop behavior for unused stdio servers, avoid loading all MCP workers for synthetic or passive thread loads, and ensure Desktop-managed settings do not silently undo an intended opt-out. A cached/deferred tool catalog alone should not be treated as proof that the executable was never started.

    Full GUI restart verification — 2026-10-22 12:30–13:56 JST

    The pending full Desktop relaunch above has now been measured after the actual remote plugin policies and the local on-demand setup were applied.

    The detached cleanup recorded 208 targeted old process identities, with zero survivors. The app-closed snapshot contained no processes attributed to the Codex tree. The helper observed the newly launched GUI, completed both timed captures, and exited; it is no longer running.

    Live diagnostic snapshot Codex-tree processes Total private commit
    Before closing, 12:30:45 JST 219 8.048 GiB
    App closed, 12:30:56 JST 0 0 GiB
    GUI relaunched, +30 seconds 94 4.060 GiB
    GUI relaunched, +75 seconds 93 3.481 GiB
    Later session, 13:51:40 JST 117 4.488 GiB

    These are live snapshots with different loaded-thread/activity states, not an isolated idle or long-term leak benchmark. They demonstrate reduced current load, not a causal memory-saving estimate or a complete lifecycle fix. Browser processes deliberately excluded from the termination targets are not claimed to have been terminated.

    After the relaunch and again in the later session, no Python, XcodeBuildMCP, Codex Security, Creative Production, textlint, Obsidian, patent-workbench, code-review-graph, Colab, or code-review worker was observed in the Codex tree. The plugins remain installed; optional tools can be invoked through the bounded local runner. Native PR GUI behavior after suppressing the code-review server has not been verified and should not be assumed unchanged.

    For the bundled code-review MCP, disabling only the plugin activation could be overridden by Desktop's command line. A disabled user-config MCP registration with the same server name took precedence in the installed backend. A control run exposed the normal public CI-check tool and started a worker; the disabled run exposed zero tools and no worker. The subsequent full GUI snapshot also showed no code-review worker. The optional runner allows only the public CI-check tool, not the server's internal PR mutation APIs.

    Composer predictions are also disabled. The app migrated the legacy persisted-atom value into desktop.composer-predictions-enabled=false in user config and removed the old atom; its absence from the legacy JSON did not mean the opt-out was lost. The installed settings-migration code and the destination value were checked.

    Remaining product-level problem: the GUI still creates multiple bundled app-tools, CUA, and Node REPL groups for loaded chats. At the later status check, this diagnostic chat was the only active local turn; this does not prove that all other loaded runtimes were unsubscribed. The +75-second snapshot already had five direct CUA groups and ten direct REPL launchers; the later session had more. Parent/launcher inspection identifies the otherwise unnamed Node workers as launch_codex_app_tools_mcp.cmd descendants. The shortened unsubscribe delay cannot release a chat still retained/subscribed by the GUI. I could not establish a supported setting in this installed build that implements true first-call activation and automatic idle release for these bundled servers while preserving their normal on-demand availability.

    This therefore remains a partial local mitigation. A Desktop/backend lifecycle change is still needed to satisfy demand-start and post-use cleanup across all MCPs. Direct causation by Your dot/Dots or Sites remains unproven; the measurements do not justify attributing the problem to either.

    2026-10-23: active subscription retention observed on 26.1016.8622.0

    The user intentionally re-enabled the optional MCP servers in Settings; this is not evidence that Codex silently reverted the previous configuration.

    A fresh read-only investigation found:

    • At 12:38 JST: 98 Python processes, 62 Node processes, 40 node_repl processes and 139 conhost processes. The five optional MCPs each had 14 instances (Colab, Obsidian and code-review-graph used two Python processes per instance; patent-analysis-workbench used one; textlint used Node). Those five MCPs accounted for approximately 5.02 GiB of private commit, not resident RAM.
    • Backend traces in the Desktop app-server show seven existing threads resumed via thread/resume between 10:48:00 and 10:48:13, immediately after Desktop startup. Their corresponding MCP launch batches appear in the process creation timestamps. These were existing ordinary/automation chats, not fourteen simultaneous coursework runs.
    • The currently installed frontend bundle retains eligible inactive owner threads for 10,800,000 ms (three hours), with an inactive-owner count threshold of 10. Active views/followers and keep-loaded conditions affect eligibility; 10 is not an absolute limit on all loaded threads.
    • Setting thread_unload_delay_secs=60 does not shorten that frontend subscription retention. It applies after a thread has no subscribers/activity. This explains why the earlier backend setting alone did not promptly release MCP resources for Desktop-retained idle chats.
    • Cleanup does sometimes work: at 12:43:25 an idle thread was logged as having no subscribers and shutting down. Its isolated startup cohort was later checked using both PID and creation time: all 26 captured Python/Node/console processes in that cohort had exited. A second thread also unloaded, and textlint instances fell from 14 to 12 without killing processes or editing configuration. Individual MCP totals differ, so process counts should not be interpreted as fourteen identical active tasks.
    • The legacy coursework bridge was a single Node process, approximately 23.4 MiB private commit, with no current child workload. The current coursework chat was separately doing browser/document work. Direct causation by Sites or Your dot remains unproven; Desktop chat subscription retention is a verified contributing mechanism for the repeated background MCP footprint.

    No app restart, configuration change, process termination, or coursework interruption was performed during this investigation. No private chat names/IDs, command lines, local paths, screenshots or raw logs are included here.

  18. nueyprap commented on Oct 22, 2026

    @nueyprap

    Same pattern on macOS, so this is not Windows-only.

    • ChatGPT desktop app 26.1016.61520 (Codex inside it), macOS 26 (Darwin 25.6), Apple M1, 16 GB RAM.
    • One codex ... app-server had 70 child processes after about 1 h 23 min. They come in batches started in the same second, one batch per thread opened: cua_node/bin/node .../codex-security/.../mcp/server.mjs --stdio, two cua_node/bin/node ./server.mjs, node_repl (x2), cua-repl.mjs (with its own node_repl), plus each configured stdio MCP server. node_repl children also start node --experimental-vm-modules .../T/.tmpXXXX/kernel.js and trusted-worker.js.
    • All batches stayed alive at 0% CPU after their threads went idle: about 60 cua_node processes, roughly 1 GB, while the Mac was at memory pressure "warn" with 13 of 14 GB swap used.

    Expected: stop a thread's MCP servers and REPL kernels when the thread goes idle or is closed, or share one set across threads.

  19. stud0709 commented on Oct 22, 2026

    @stud0709

    I monitored Codex during the day. If a thread was active, its child processes remain in memory, the thread does not "cool down" to the extent that the dependent processes are terminated. For me, the biggest memory consumer was the integrated web browser. I disabled it, switched to chrome dev-tools mcp, and the memory usage remained under control after that. Agents open multiple browser tabs and don't close them, these are very memory-expensive

  20. zod-cho commented on Oct 23, 2026

    @zod-cho

    Additional Windows observation: 219 Codex-related Node processes and approximately 13.5 GiB Node private memory

    Adding a sanitized report from October 23, 2026 to this existing issue. This is a report of high helper-process overhead, not a confirmed memory leak or a proven update regression.

    Environment

    • Installed Codex Windows desktop package: 26.1016.8622.0.
    • Bundled backend: 0.163.0-alpha.11.2.
    • Windows; exact OS build and subscription are not included in the collected diagnostic summary.
    • VS Code 1.127.0 was found in installation metadata. No VS Code process was found at the 17:25:25 KST check.
    • The Codex VS Code extension was not found in the standard local extension folder/registry checks. Remote, custom-directory, and WSL installations were not checked. No extension disable/uninstall test was performed.

    User-observed behavior
    After an app update, opening Codex and selecting/assigning the computer appears to bring back many Node processes even without submitting new work. This sequence is a user observation, not a controlled minimal reproduction, and update causation has not been established.

    Measured observations

    • An initial snapshot contained 217 Node processes, with repeated MCP-related groups of approximately 28 instances each. XcodeBuildMCP had 24 wrapper processes and 24 server processes.
    • A later snapshot contained 220 Node processes: 219 traced through process ancestry to Codex and one to Adobe. The Codex-related chains led back to codex.exe.
    • Summed Node private memory was approximately 13.5 GiB. This is private committed memory, not resident physical RAM.
    • The count remained stable over a short 22-second observation. That does not establish continuing growth or a leak.
    • A check of 28 recent tasks reported zero active tasks. This does not prove that every loaded thread/runtime was unsubscribed or that all background activity was absent.

    Troubleshooting and limitations

    • During stop/exit troubleshooting, screenshots showed total system memory utilization falling from approximately 71–74% to 27%. No Node entries were visible in the captured portion of the later Task Manager view. Those screenshots do not prove that all Node processes exited, nor do they constitute a controlled test separating Codex from a VS Code window.
    • The user reports recurrence after reopening/selecting the computer.
    • A narrow XcodeBuildMCP-disable configuration change was saved and verified around 17:07 KST on October 23. The plugin itself remained enabled, and existing processes were deliberately retained. A nearby before/after observation went from 86 to 92 Node processes, private memory 5,336.3 to 5,634.1 MiB, and summed working set 3,328.7 to 3,708.7 MiB. These snapshots were not a controlled experiment and do not establish that the change caused an increase or failed after restart. Summed working set is not exclusive physical RAM.
    • A full restart followed by verification of that configuration change is still pending. No durable mitigation has been verified.
    • These snapshots were collected during live troubleshooting, not a clean, isolated idle benchmark.

    Expected behavior / request
    Selecting a computer and loading existing chats should not impose unexpectedly large repeated MCP/helper overhead when no new work has been requested. Please clarify the expected helper count/lifetime and provide a supported way to safely release unused helpers without interrupting active work.

    What supported, privacy-safe diagnostic collection would best identify the owning threads/subscriptions and distinguish expected retention from a lifecycle defect? Is there a supported workaround for repeated XcodeBuildMCP startup on Windows while preserving the plugin's availability when actually needed?

    No screenshots, raw logs, local paths, computer/user names, account identifiers, session IDs, credentials, or project contents are included in this report. A shared root cause with this issue is not yet established.

  21. tajemniktv commented on Oct 27, 2026

    @tajemniktv

    And that's what we get out of the 28 Tibo Days - more issues, more usage cuts, more unnecessary models.
    Yet things like those, are still unresolved and not addressed...

  22. IvoArban commented on Oct 29, 2026

    @IvoArban

    Additional Windows reproduction on 2026-10-29, with impact on external SQL applications and recovery after a full Codex restart.

    Environment:

    • Codex Desktop MSIX package: OpenAI.Codex_26.1023.6621.0_x64 (version from the running executable's package path).
    • Separately installed CLI reports codex-cli 0.165.0-alpha.1.2; this is not a verified version of the Desktop-bundled backend.
    • Windows 11 Enterprise, build 26200, x64; 16 logical processors; approximately 31.3 GiB physical RAM.

    Observed before restart:

    • Normal multi-chat Codex usage had been running for several hours. A process-ancestry snapshot contained approximately 168 processes in the Codex Desktop tree, including 33 node_repl.exe, 26 node.exe, 11 dab.exe SQL/MCP connector processes, 64 conhost.exe, 14 ChatGPT.exe, and 3 codex.exe processes. This count includes the diagnostic shells running at that moment; it is not a count of active agents or proven leaked processes.
    • The full tree had approximately 6.83 GiB private committed memory and 6.87 GiB summed working set. Summed working set is not exclusive physical RAM.
    • Two Codex-descendant dab.exe processes had established TCP connections to a remote SQL Server. Their transaction/request state was not captured.
    • A separate snapshot showed about 30 HTTPS sockets in CLOSE_WAIT owned by the Codex app-server. No relationship between these sockets and SQL blocking has been established.
    • External SQL-dependent applications were affected: SSMS could authenticate, but browsing/query-related interaction was extremely slow; Kardex Power Pick loaded its summary but became Not Responding when full data was requested. The applications use two different remote SQL Server instances.
    • Windows Application Hang events independently recorded SSMS hanging on October 27 and Power Pick hanging on October 29. During live observation, Power Pick's working set grew from approximately 240 MiB to 3.7 GiB within minutes while its UI was unresponsive and its CPU consumption was roughly one logical core. This does not by itself prove a memory leak or identify which component caused it.

    Checks and limits:

    • Repeated TCP connection tests to both SQL instance ports succeeded in approximately 1-18 ms; normal Windows name resolution succeeded.
    • Baseline available physical memory was approximately 10 GiB, briefly falling to 6.8 GiB during the Power Pick growth. Local disk activity/queue did not show sustained saturation during the samples. Thus, total resource exhaustion was not demonstrated in this reproduction.
    • New diagnostic SQL connections with certificate validation enabled failed on an untrusted certificate chain. Validation was not bypassed. Consequently, no server-side blocking chain, open transaction, or DMV snapshot was captured.

    Recovery:
    The user fully terminated and relaunched Codex Desktop and then reported that SQL connections and both applications worked again without freezing. A subsequent snapshot verified that Codex Desktop had restarted and the Node-family runtime count was lower (10 node_repl.exe plus 9 node.exe at that moment). This was already an active post-restart session, not a measured idle startup baseline.

    This is a single before/after recovery observation, not a controlled repeated reproduction. It strengthens the suspected association with Codex or its connector/helper lifecycle, but does not establish that Codex held an uncommitted SQL transaction. Transaction retention, connector/pool lifecycle, and helper/resource retention are hypotheses requiring maintainer investigation; a shared root cause with this issue is not yet established.

    Please investigate whether abandoned/retained SQL MCP connections or helper contexts can affect other SQL clients, and provide a supported way to inspect ownership and safely release inactive runtimes/connections without restarting the entire app. A privacy-safe diagnostic procedure for capturing this before the next restart would be helpful.

    This report intentionally excludes internal server/database names, IP addresses, credentials, screenshots, raw logs, project contents, and session/account identifiers.

  23. jkaster commented on Nov 5, 2026

    @jkaster

    Additional Windows incident evidence and request for runtime-lifecycle owner routing.

    During a November 1, 2026 multi-chat incident, the initial inventory contained 31 node_repl.exe and 69 node.exe processes. A subsequent ownership reconciliation used process creation identities, Desktop startup records, and child-chat ancestry, rather than process names or shared-parent ancestry alone. It classified 94 baseline identities as idle Codex-owned runtimes. All 94 were verified absent after coordinated manual retirement; five baseline helpers belonging to an active Claude session and one shared artifact service were preserved, together with the active Claude session and shared Codex app-server.

    This is evidence of retained runtimes during paused goals/completed or interrupted child-chat work. It is not a controlled attribution of memory growth, proof of one root cause, or proof that every retained helper had the same lifecycle defect as this issue. The successful manual cleanup is not recurrence prevention.

    Version qualification: the currently installed Windows Desktop package on November 4 is OpenAI.Codex 26.1029.7803.0. That is a later verification snapshot, not a proven package version for the original November 1 incident. A separately installed CLI version is not being substituted for the Desktop backend version. Raw process command lines, local paths, project contents, account identifiers, session IDs, and credentials are intentionally omitted.

    We independently repaired and checked our application's owned service-manager/subprocess boundary. Real concurrent Windows report tests now verify successful completion, missing-report failure, and hard owner cancellation: the owned checker and planted grandchild exit in each case. Separate managed-session tests verify that pending RPC timers retire on close and on synchronous circular/BigInt/throwing-toJSON serialization failures. These application-level passes do not establish cleanup of Codex-owned MCP/CUA/REPL hosts.

    Please route the remaining issue to the Codex Desktop/app-server MCP/CUA/REPL runtime-lifecycle owner and link the owning work item or fix here. In particular, we need supported behavior and native verification for:

    1. Paused open chats and completed child agents: dispose or explicitly transfer each disposable runtime generation's ownership; define intentional retained/shared services separately.
    2. Cancellation, parent/tool-host loss, partial launch failure, and repeated disposal: join owned hosts and kernels, settle pending requests/listeners/timers, and preserve workload plus cleanup failures.
    3. Exact process-incarnation ownership and PID reuse: preserve active unrelated chats, Claude processes, and shared services. No broad process-name or app-server-parent kill workaround.
    4. Terminal publication: distinguish completed foreground work from a still-running telemetry/tool-host tail, and retain an actionable owned handle until cleanup settles.

    The inspected public app-server surface exposed background-terminal cleanup but no equivalent per-chat MCP/REPL-host retirement request. Terminal-only cleanup and a SessionEnd-only hook therefore have not been accepted as proof of this boundary. Please provide a supported privacy-safe diagnostic or verification interface if the owning implementation already exists. Existing related report: #30408. We have not installed a blanket cleanup hook, changed global runtime policy, or claimed an upstream fix is verified.

    Prepared with Codex; posted on the user's explicit request to coordinate this incident with its actual owner.

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

    appbugmcpperformancewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions