Skip to content

gpt-5.3-codex works in codex exec but fails in codex mcp-server subagent with same profile/auth #11927

Closed as not planned

Description

@MarlonKr

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

26.212.1823

What subscription do you have?

pro

What platform is your computer?

Darwin 25.1.0 arm64 arm

What issue are you seeing?

gpt-5.3-codex works for normal Codex CLI runs, but fails when the same project is invoked as a subagent via codex mcp-server.

Environment

  • Codex CLI: codex-cli 0.93.0
  • Auth: codex login status => Logged in using ChatGPT
  • OS: macOS
  • account has access to gpt-5.3-codex
  • tried with and without forced_login_method

Relevant config

Global ~/.codex/config.toml:

model = "gpt-5.3-codex"
forced_login_method = "chatgpt"

[profiles.subagent-medium]
model = "gpt-5.2-codex"
forced_login_method = "chatgpt"

[mcp_servers.CODEX_PROJECTS_SUBAGENT]
command = "codex"
args = ["--profile", "subagent-medium", "mcp-server"]
cwd = "/Users/.../xyz_agent"

Project <project>/.codex/config.toml:

model = "gpt-5.3-codex"
forced_login_method = "chatgpt"

[profiles.subagent-medium]
model = "gpt-5.3-codex"
forced_login_method = "chatgpt"

What steps can reproduce the bug?

  1. Configure project + global config as above.
  2. Confirm auth:
codex login status
  1. Run normal CLI execution in that project:
codex exec --skip-git-repo-check --profile subagent-medium "reply only: OK"
  1. Invoke same project via registered MCP subagent (codex mcp-server path), profile subagent-medium.

What is the expected behavior?

Expected behavior

Subagent call should run with gpt-5.3-codex and succeed, same as codex exec.

Actual behavior

Subagent call fails with:

stream disconnected before completion: The model `gpt-5.3-codex` does not exist or you do not have access to it.

Additional information

  • Same subagent works with gpt-5.2.
  • codex exec in the same project shows model gpt-5.3-codex and starts successfully.

Activity

  1. added
    appIssues related to the Codex desktop app
    on Feb 16, 2026
  2. added
    bugSomething isn't working
    CLIIssues related to the Codex CLI
    mcpIssues related to the use of model context protocol (MCP) servers
    mcp-serverIssues related to the use of the `codex mcp-server` subcommand
    on Feb 16, 2026
  3. github-actions commented on Feb 16, 2026

    @github-actions
    Contributor
  4. removed
    mcpIssues related to the use of model context protocol (MCP) servers
    CLIIssues related to the Codex CLI
    appIssues related to the Codex desktop app
    on Feb 16, 2026
  5. oxysoft commented on Mar 9, 2026

    @oxysoft

    Related design thread: #14039\n\nThis bug feels like a concrete symptom of unclear/fragile subagent model-provider-profile routing semantics. #14039 proposes making that routing explicit and configurable per subagent instead of letting special paths drift.

  6. etraut-openai commented on Aug 26, 2026

    @etraut-openai
    Contributor

    Note: We've announced that the mcp-server is deprecated and will be removed in a future release. We recommend using the app server interface instead. We won't be prioritizing any bug fixes in the mcp-server, so I'm going to close this issue.

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

    bugSomething isn't workingmcp-serverIssues related to the use of the `codex mcp-server` subcommand

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions