Skip to content

Creating sub-agent hangs on MCP startup #19542

Open

Description

@TripQi

What version of Codex CLI is running?

0.125.0

What subscription do you have?

plus

Which model were you using?

gpt-5.5

What platform is your computer?

win10 x64

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

Windows Terminal PowerShell7

What issue are you seeing?

Today I updated codex to the latest version, but when the main agent creates sub-agents, the sub-agents get stuck during startup on MCP. Every time, the last MCP fails to load. I thought it was an issue with that particular MCP, so I removed it, but the problem persisted—it still gets stuck on the last MCP. This morning, when using the codex app, this issue did not occur; I encountered it while using the CLI.

What steps can reproduce the bug?

Let the main agent (gpt-5.5 xhigh) create sub-agents and specify specific models and levels of reasoning (I created a specified sub-agent configuration toml in the agents folder, specifying that this sub-agent uses gpt-5.4 high; I don't know if this has affected the phenomenon).

What is the expected behavior?

The sub-agent is stuck in the startup state, and the last MCP will remain in the loading state.

Additional information

No response

Activity

  1. added
    bug
    on Apr 25, 2026
  2. added
    CLI
    windows-os
    mcp
    subagent
    on Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugmcpperformancesubagentwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions