Repository navigation
Description
What version of the Codex App are you using?
26.1013.40934, build 20770. The macOS application is branded ChatGPT; its bundle identifier is com.openai.codex.
What subscription do you have?
Not specified in this public report.
What platform is your computer?
- macOS 14.6.1 (23G93), Intel iMac
uname -mprs:Darwin 23.6.0 x86_64 i386- Fantastical 4.2.3, build 2331
- Bundled native FantasticalMCP helper 1.1.3, build 2331
What issue are you seeing?
The desktop app accumulated 77+ native FantasticalMCP child processes across chat/worker contexts, with substantial aggregate background CPU use. After manually reclaiming 39 inactive helpers without restarting the app, the count grew again. Changing the global MCP configuration to enabled = false while an existing chat continued running did not prevent further launches in that same backend: four surviving helpers have verified birth times after the setting was saved, including one more than 23 minutes later.
This is a native Fantastical reproduction on the current installed Intel macOS build, potentially related to #30408, #43971, and #42000. It adds measured CPU impact, guarded cleanup results, and precise timestamps for launches after a runtime configuration disable. It is not a claim that the root cause differs from those reports.
What steps can reproduce the bug?
This is the observed sequence from a long-running session, not a deterministic reproduction from a clean restart:
-
Configure Fantastical's native stdio MCP globally in
~/.codex/config.toml:[mcp_servers.fantastical] enabled = true command = "/Applications/Fantastical 2.app/Contents/Helpers/FantasticalMCP.app/Contents/MacOS/FantasticalMCP"
-
Use multiple chats and worker agents while the same desktop backend remains running. The Fantastical integration was recently configured; the precise onset and creation rate have not been isolated.
-
Inspect the native helper process count, parent PIDs, process birth times, and per-context MCP startup logs. Initially 77 helpers were present; later snapshots reached 78/79. All inspected helpers were direct children of the same desktop backend, PID 69966. These were not 77 visible Fantastical windows.
-
Correlate helper birth times with per-context
mcp_server_startup_status_updatedrecords (server=fantastical,status=starting/ready) and saved worker ancestry. Connections were retained across multiple contexts, including inactive contexts. Some contexts were temporary backendthread/forksessions absent from the saved thread index; their purpose and ownership could not all be established. -
Without restarting the application, gracefully terminate only the helpers whose owning contexts can be established as inactive, preserving active chats, their known workers, recent activity, and uncertain ownership. The diagnostic cleanup removed 39 helpers, as detailed below.
-
Keep another chat's ongoing turn running. Change only
mcp_servers.fantastical.enabledfromtruetofalsein the global configuration. Verify the saved TOML parses correctly and every other parsed value is unchanged. -
Inspect helper birth times in the same still-running backend. New Fantastical helpers continued to appear after the disable, as detailed below.
What is the expected behavior?
- Retained MCP connections/processes should have a bounded, understandable lifetime, with inactive contexts releasing their resources rather than allowing large idle helper populations to accumulate.
- Disabling a local MCP should have a clear effective boundary. New connections should respect the disabled setting when it is applicable; if running chats, worker forks, or the whole backend retain a prior configuration snapshot until restart, that limitation should be explicit to the user.
- Users should be able to reclaim an unused integration's background resources without interrupting unrelated active work.
Additional information
Process ownership and CPU measurements
- Executable:
/Applications/Fantastical 2.app/Contents/Helpers/FantasticalMCP.app/Contents/MacOS/FantasticalMCP. - All inspected instances had the same backend parent, PID 69966. Stdio descriptors were pipes connected to that backend.
- Per-context launch records and process birth times support retained separate MCP connections across chats/worker contexts. They do not prove that every helper was orphaned, or that Fantastical alone owns the defect.
- A representative six-second native stack sample was mostly waiting. This was not a single helper spinning at 100% CPU; small per-process costs multiplied across many helpers.
- Aggregate helper CPU measured approximately 55.36% before the cleanup batch and 25.58% afterward, using cumulative process CPU-time deltas over wall-clock sampling intervals. These are percentages of one logical CPU core, not of the whole machine.
- The user reported persistent loud fan activity, but other independent CPU consumers were also present. This report does not attribute all fan activity or the backend's total memory footprint to Fantastical.
Guarded cleanup and regrowth
39 helpers were gracefully terminated: one pilot, followed by 38 more. Every target was revalidated by full executable path, parent PID, and precise process birth time before SIGTERM. Active/recent/uncertain contexts were preserved. No SIGKILL, backend restart, desktop restart, calendar edit, or Fantastical desktop-app termination was used.
Because another helper started during the observation window, the batch snapshot fell from 78 to 40. At 19:46:22 EDT the count was 38, after two additional helpers exited naturally. All 39 deliberately removed PIDs remained absent. The unrelated active chat continued the same in-progress turn, completed a later command, and reported no turn error.
By the pre-disable snapshot, the helper count had climbed back to 60. This regrowth is an observation; it is not proof of an automatic restart of the 39 terminated sessions.
Exact evidence of launches after enabled = false
All times are 2026-10-21, EDT (UTC-04:00).
The global configuration change was saved and read back at 19:53:17.182511. The only parsed configuration value changed was mcp_servers.fantastical.enabled: true -> false. The application and backend were not restarted.
The native process birth-time query (proc_pidinfo, PROC_PIDTBSDINFO) subsequently found these four surviving helpers, all direct children of the unchanged backend PID 69966:
| Helper PID | Native process birth time | Time relative to saved disable |
|---|---|---|
| 43277 | 19:53:19.218563 | about 2 seconds later |
| 44065 | 19:54:54.251756 | about 1 minute 37 seconds later |
| 51018 | 20:11:48.038739 | about 18 minutes 31 seconds later |
| 52714 | 20:16:30.936357 | about 23 minutes 14 seconds later |
At 20:17:47, 64 helpers remained. Their summed instantaneous ps CPU reading was 31.2%; this snapshot is separate from the CPU-time-delta measurements used for the cleanup comparison.
Important limit: this establishes continued launching after editing the saved configuration in an already-running app. It does not establish that a fresh backend or newly opened clean session ignores enabled = false. A full quit/reopen was deliberately deferred to preserve the user's other ongoing chat. Inherited configuration snapshots, runtime refresh behavior, and worker/fork lifecycle are possible explanations requiring maintainer investigation.
Workaround and privacy
The unused Fantastical MCP is now disabled in the saved configuration; a full application restart and post-restart verification remain pending until the other chat finishes. The user's existing Google Calendar connections were verified separately as an alternative. No calendar events or account settings were changed.
This report contains a sanitized diagnostic narrative rather than raw logs, environment variables, full configuration, calendar contents, private paths, prompts, or conversation identifiers.
Related reports:
- MCP server processes leak: per-thread processes never cleaned up (9+ GB RSS) #30408 — retained per-thread MCP processes on macOS
- [macOS] Codex Desktop creates hidden threads and leaks one MCP process pool approximately every 5 minutes while idle #43971 — hidden-context MCP process-pool accumulation on macOS
- [Windows App 26.825.6671.0] Subagents ignore disabled MCP configuration and retain eagerly started MCP process stacks #42000 — MCP process retention and disabled-server behavior on Windows; not assumed to have the same configuration-refresh semantics
Activity
github-actions commentedon Oct 22, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
fortynova commentedon Oct 22, 2026
Related-report review and post-restart verification
Reviewed the automated duplicate suggestions, #55141 and #54988. Both are relevant to retained per-context MCP/tool services. #54988 supplies a specific title-generation/prediction-fork lifecycle lead, but that exact sequence has not been established for this Fantastical case. Please consolidate if maintainer investigation confirms the same underlying defect; this is not a claim of a distinct root cause.
There is now a useful additional verification result:
mcp_servers.fantastical.enabled = falsesetting remained in place.Accordingly, the original report's four launches after the saved disable apply to the already-running previous backend and its contexts. They are not evidence that a fresh backend ignores
enabled = false. Both application version and running session changed at relaunch, so this is not a controlled attribution to either change alone, nor proof that the underlying retention defect is fixed.The original report retains the native-helper launch timeline, ownership correlations, and CPU reduction from guarded cleanup as additional diagnostic evidence. No private logs or identifiers are attached here.