Skip to content

Possible Codex CLI hang when /review invokes codegraph.codegraph_context #295

@laojianzi

Description

@laojianzi

Description

Image

When I use /review in Codex and select 2. Review uncommitted changes, Codex invokes the MCP tool codegraph.codegraph_context and then waits indefinitely.

The MCP call never appears to complete from within Codex. I waited for more than 1 hour, but it was still pending, so I eventually cancelled it manually with Esc.

However, when I tested the same parameters through both the CLI and modelcontextprotocol/inspector, the context response returned quickly. This makes me suspect that the issue may be related to Codex CLI rather than the MCP server itself.

Steps to reproduce

  1. Open Codex.
  2. Run /review.
  3. Select 2. Review uncommitted changes.
  4. Observe that Codex calls MCP tool codegraph.codegraph_context.
  5. The call remains pending indefinitely.

Expected behavior

Codex should receive the MCP response and continue the review process.

Actual behavior

Codex waits indefinitely for the MCP call to finish. The call does not complete even after more than 1 hour, and I have to cancel it manually with Esc.

Additional context

I tested the same MCP parameters using:

  • CLI
  • modelcontextprotocol/inspector

In both cases, the response returned quickly, so the MCP server itself appears to be working correctly.

This may indicate an issue with how Codex CLI handles the MCP response or waits for MCP tool completion.

Environment

Please let me know what environment details would be helpful. I can provide:

  • Codex CLI version: 0.132.0
  • MCP server version: 0.8.0
  • OS: macOS 13.6.4 (22G513)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions