Codex Desktop on Windows can leak hundreds of taskkill processes and exhaust WMI
RocStone · ghdev · 2026-07-20
Codex Desktop on Windows can spawn hundreds of lingering taskkill.exe processes and exhaust WMI
An issue against openai/codex reports that normal shell-command use, cancellations, and timeouts can trigger an unbounded cleanup loop on Windows Desktop. Hundreds of taskkill.exe processes remain alive, each with a conhost.exe, and together they hammer Win32Process queries until the Windows Management Instrumentation provider hits its private-memory and thread quotas.
The reporter measured up to 457 taskkill.exe processes, 473 conhost.exe, more than 350,000 handles, and over 14,000 threads. Event Viewer showed WMI quota violations and repeated Win32Process failures; killing the accumulated processes immediately reduced the load, but the leak resumed while Codex kept running.
More from coding & agent
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- 105 hidden bugs, 2 repos: DeepSeek V4.1 Flash fixes 24 at $1.80 vs Opus 5's 27 at $51.33 — ChartsJournalX · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- Running the Firefox MCP on Android via Termux, ngrok, and mcp-proxy — Nervous-Strain7544 · 2026-09-11
- SmolVM open-sources persistent computer infrastructure for agents that outlive chat sessions — aniketmaurya · 2026-09-11