Codex startup sub-agent will restart a bunch of mcp, but it will not be automatically cleared after closing the sub-agent.

Resolved 💬 5 comments Opened Feb 27, 2026 by TripQi Closed Apr 28, 2026

What version of Codex CLI is running?

0.106

What subscription do you have?

team

Which model were you using?

gpt-5.3-codex

What platform is your computer?

windows 10

What terminal emulator and version are you using (if applicable)?

Windows Terminal

What issue are you seeing?

Codex startup sub-agent will restart a bunch of mcp, but it will not be automatically cleared after closing the sub-agent.

<img width="699" height="239" alt="Image" src="https://github.com/user-attachments/assets/dd0dbce4-d94e-412a-a76d-ec0e74332105" />

What steps can reproduce the bug?

Let codex start the subagent

What is the expected behavior?

Many duplicate mcp processes appear

Additional information

_No response_

View original on GitHub ↗

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