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
- NVIDIA says Nemotron 3 Ultra hit 97.1% on agentic RTL chip-design tasks — NVIDIAAI · 2026-07-27
- Tokyo Agent Forge hackathon shipped production-ready AI agents in one day — DavidBennett__ · 2026-07-27
- Long-running agents will need immutable event logs, this thread argues — sebpaquet · 2026-07-27
- Agentic Data Science in Practice: Agents Write Code but Answer Wrong Questions — hugobowne · 2026-07-27
- A VS Code extension adds Markdown-style highlighting to Alchemy string templates — samgoodwin89 · 2026-07-27
- Claude’s Stripe MCP connector is being called unusable after repeated disconnects — evielync · 2026-07-27