Built-in Agent subsystem enters a runaway loop, repeatedly running taskkill and launching conhost.exe, maxing out the CPU

Open 💬 4 comments Opened Jul 18, 2026 by xing-tu-g

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

26.715.4045.0

What subscription do you have?

plus

What platform is your computer?

Windows 11

What issue are you seeing?

内置 Agent 子系统进入了一个失控循环,不断执行 taskkill(可能是在做进程清理)和启动 conhost.exe(每次命令执行都创建新 conhost)导致CPU爆满.
1..30 | ForEach-Object {

> $tk = @(Get-Process taskkill -ErrorAction SilentlyContinue).Count > $ch = @(Get-Process conhost -ErrorAction SilentlyContinue).Count > $ps = @(Get-Process powershell -ErrorAction SilentlyContinue).Count > > "{0:HH:mm:ss} taskkill={1} conhost={2} powershell={3}" -f ` > (Get-Date),$tk,$ch,$ps > > Start-Sleep 1 > }

18:53:55 taskkill=174 conhost=188 powershell=1
18:53:56 taskkill=184 conhost=199 powershell=1
18:53:57 taskkill=196 conhost=212 powershell=1
18:53:58 taskkill=209 conhost=224 powershell=1
18:53:59 taskkill=221 conhost=238 powershell=3
18:54:00 taskkill=231 conhost=248 powershell=3
18:54:01 taskkill=242 conhost=258 powershell=3
18:54:02 taskkill=251 conhost=267 powershell=3
18:54:03 taskkill=261 conhost=278 powershell=3
18:54:04 taskkill=271 conhost=288 powershell=3
18:54:05 taskkill=282 conhost=300 powershell=3
18:54:06 taskkill=293 conhost=310 powershell=3
18:54:07 taskkill=306 conhost=322 powershell=3
18:54:09 taskkill=303 conhost=316 powershell=3
18:54:10 taskkill=303 conhost=315 powershell=4
18:54:11 taskkill=302 conhost=313 powershell=4
18:54:12 taskkill=293 conhost=303 powershell=3
18:54:13 taskkill=285 conhost=296 powershell=3
18:54:14 taskkill=292 conhost=303 powershell=3
18:54:15 taskkill=298 conhost=308 powershell=3
18:54:16 taskkill=300 conhost=309 powershell=3
18:54:17 taskkill=302 conhost=313 powershell=3
18:54:18 taskkill=299 conhost=306 powershell=1
18:54:19 taskkill=302 conhost=310 powershell=1
18:54:20 taskkill=298 conhost=308 powershell=3
18:54:21 taskkill=293 conhost=301 powershell=2
18:54:22 taskkill=296 conhost=304 powershell=1
18:54:23 taskkill=295 conhost=303 powershell=1
18:54:25 taskkill=295 conhost=303 powershell=1
18:54:26 taskkill=296 conhost=304 powershell=1
<html>
<body>
<!--StartFragment-->
进程 | 行为
-- | --
ChatGPT.exe (64856) | 父进程,大量 spawn taskkill.exe
codex.exe (42884) | 父进程,大量 spawn conhost.exe
taskkill / conhost | 被 Codex 不断重复执行

<!--EndFragment-->
</body>
</html>

What steps can reproduce the bug?

启动codex后就会触发

What is the expected behavior?

修复异常把CPU打爆的bug

Additional information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗