You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: /mcp prints taskkill “SUCCESS” process termination logs #20845
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serverswindows-osIssues related to Codex on Windows systems
/mcp should display MCP server status without OS-level process logs.
What is the actual behavior?
SUCCESS: The process with PID 14276 (child process of PID 5280) has been terminated.
SUCCESS: The process with PID 5280 (child process of PID 14200) has been terminated.
SUCCESS: The process with PID 14200 (child process of PID 14748) has been terminated.
SUCCESS: The process with PID 14748 (child process of PID 2024) has been terminated.
appear every time /mcp is run.
Additional context
Context7 MCP server works correctly; this is cosmetic noise
Reproduces with:
npx directly
cmd /c npx
custom env
startup_timeout_ms
This appears to be Windows-specific (not observed under WSL2)
Impact
Low functional impact, but degrades CLI UX—especially when /mcp is used frequently.
Since no stdio is specified, taskkill inherits Codex's stdout/stderr. As a result, taskkill status messages are printed directly into the terminal used by the TUI.
Fixing this bug could still take a long time; this repository does not accept PRs from external contributors, and there are currently over 3,000 open issues.
Currently, in the latest version of Codex, if this issue occurs, you can resize the terminal window; this triggers a re-layout of the Codex TUI, thereby clearing the stdout output by taskkill that has leaked into the TUI.
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serverswindows-osIssues related to Codex on Windows systems
Activity
dupl commentedon May 3, 2026
I encountered the same problem.
taskkilloutput leaks into TUI when terminating stdio MCP subprocesses #20869 as a duplicate of this issueAspirinMX commentedon May 3, 2026
Same issue:
Relevant code:
The Windows termination path currently appears to invoke taskkill without redirecting its stdio, see
codex-rs/rmcp-client/src/stdio_server_launcher.rs:Since no stdio is specified, taskkill inherits Codex's stdout/stderr. As a result, taskkill status messages are printed directly into the terminal used by the TUI.
Possible fix:
Redirect the taskkill process stdio to null:
Optionally, also set
CREATE_NO_WINDOWon Windows:dupl commentedon May 4, 2026
@etraut-openai Please fix this bug. Thank you so much!
zhao004 commentedon May 4, 2026
Same problem
AngeloTadeucci commentedon May 5, 2026
Same. thread ID 019df5b9-d5f8-77a3-8629-36c48d1879b1
falvarez1 commentedon May 5, 2026
Same... version
codex-cli 0.128.0dupl commentedon May 6, 2026
@rhan-oai Please fix this bug. Thank you so much!
dupl commentedon May 6, 2026
@fcoury-oai Please fix this bug. Thank you so much!
AspirinMX commentedon May 7, 2026
Fixing this bug could still take a long time; this repository does not accept PRs from external contributors, and there are currently over 3,000 open issues.
AspirinMX commentedon May 7, 2026
Currently, in the latest version of Codex, if this issue occurs, you can resize the terminal window; this triggers a re-layout of the Codex TUI, thereby clearing the stdout output by
taskkillthat has leaked into the TUI.Chris0Jeky commentedon May 10, 2026
As of today (May 10) the issue is still present for me and triggers regularly
fix(tui): suppress taskkill output for MCP teardown on Windows (#21759)
fix(tui): suppress taskkill output for MCP teardown on Windows (opena…
fix(tui): suppress taskkill output for MCP teardown on Windows (opena…
fix(tui): suppress taskkill output for MCP teardown on Windows (opena…
fix(tui): suppress taskkill output for MCP teardown on Windows (opena…