Skip to content

/codex:adversarial-review fails with default gpt-5.5 on codex-cli 0.125.0, but succeeds with --model gpt-5.4 #270

@mudsg24

Description

@mudsg24

Summary

/codex:adversarial-review fails when the plugin inherits a top-level Codex config default of model = "gpt-5.5", even though the local Codex CLI is already on the latest release I can install (codex-cli 0.125.0). The same adversarial review succeeds when I explicitly pass --model gpt-5.4.

This makes the error message misleading: it says GPT-5.5 requires a newer Codex CLI, but the CLI is already current, and the failure appears specific to the plugin's adversarial-review structured-output path rather than general GPT-5.5 access.

Environment

  • OS: macOS 26.4.1 / Darwin 25.4.0 arm64
  • Node: v25.8.0
  • Codex CLI: codex-cli 0.125.0
  • npm global package: @openai/[email protected]
  • codex-plugin-cc: 1.0.4
  • Auth: ChatGPT login
  • Claude Code plugin command: /codex:adversarial-review

Relevant ~/.codex/config.toml settings:

model = "gpt-5.5"
model_context_window = 1000000
model_auto_compact_token_limit = 800000
model_reasoning_effort = "xhigh"

Reproduction

  1. Configure Codex with top-level default model gpt-5.5.
  2. In Claude Code, run:
/codex:adversarial-review --wait
  1. The review fails with the following error captured in the plugin job log / result:
{"type":"error","status":400,"error":{"type":"invalid_request_error","message":"The 'gpt-5.5' model requires a newer version of Codex. Please upgrade to the latest app or CLI and try again."}}

The rendered result is:

# Codex Adversarial Review

Codex did not return valid structured JSON.

- Parse error: {"type":"error","status":400,"error":{"type":"invalid_request_error","message":"The 'gpt-5.5' model requires a newer version of Codex. Please upgrade to the latest app or CLI and try again."}}

Control checks

The installed CLI is current:

codex --version
# codex-cli 0.125.0

npm list -g --depth=0 | rg '@openai/codex|codex'
# @openai/[email protected]

A plain plugin task with the default gpt-5.5 model succeeds from the same plugin runtime:

node ~/.claude/plugins/cache/openai-codex/codex/1.0.4/scripts/codex-companion.mjs task --json "Return exactly OK."

Result:

{
  "status": 0,
  "rawOutput": "OK",
  "touchedFiles": [],
  "reasoningSummary": []
}

The same adversarial review succeeds when the model is explicitly downgraded:

/codex:adversarial-review --model gpt-5.4 --wait

Result from the plugin runtime included valid structured JSON and parseError: null.

Expected behavior

One of:

  1. /codex:adversarial-review should work with inherited model = "gpt-5.5" when the installed Codex CLI is 0.125.0, or
  2. the plugin should surface a clearer diagnostic if GPT-5.5 is not supported for this specific turn/start + outputSchema / structured JSON path, or
  3. the plugin should document or apply a temporary workaround such as --model gpt-5.4 for adversarial review until the upstream app-server path supports GPT-5.5 fully.

Actual behavior

The plugin reports a structured-output parse failure whose underlying 400 says:

The 'gpt-5.5' model requires a newer version of Codex. Please upgrade to the latest app or CLI and try again.

This is misleading because codex-cli 0.125.0 is already installed and basic GPT-5.5 plugin tasks work.

Suspected scope

This looks specific to the adversarial-review path, likely the plugin's runAppServerTurn(... outputSchema: readOutputSchema(REVIEW_SCHEMA) ...) flow, not general GPT-5.5 model availability.

Related but not exact duplicates:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions