Skip to content

Regression: gpt-5.3-codex-spark falls back to image-capable unknown-model metadata after 0.144.0 catalog update #32132

Open

Description

@ignatremizov

What version of Codex CLI is running?

v0.144.0 and current main after the model catalog update that removed the gpt-5.3-codex* metadata from the bundled catalog.

The regression appears between rust-v0.143.0 and rust-v0.144.0.

What subscription do you have?

Not subscription-specific. Observed on Pro 20x.

Which model were you using?

gpt-5.3-codex-spark

The resolved backend slug in the 400 was:

gpt-5.3-codex-spark-1p-codexswic-ev3

What platform is your computer?

Not platform-specific.

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

Not terminal-specific.

Codex doctor report

Not applicable. This is a model catalog / metadata fallback regression.

What issue are you seeing?

gpt-5.3-codex-spark no longer resolves to model-specific metadata, so Codex falls back to generic unknown-model metadata and advertises image_generation to a model that intentionally does not support image generation.

Observed CLI behavior:

codex -m gpt-5.3-codex-spark

› Ping

⚠ Model metadata for `gpt-5.3-codex-spark` not found. Defaulting to fallback metadata; this can degrade performance and cause issues.

■ {
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "message": "Tool 'image_generation' is not supported with gpt-5.3-codex-spark-1p-codexswic-ev3.",
    "param": "tools"
  },
  "status": 400
}

This is not a request to add image generation to Spark. The earlier behavior/expectation is the opposite: Spark should be known to the client as a text-only/no-image-generation model, so Codex should not send the image_generation tool for it.

The failure is caused by the catalog/fallback path losing that model-specific capability knowledge. Generic fallback metadata currently uses the default input modalities (text, image) for backward compatibility. The tool planner then treats image input support as sufficient to expose standalone image_generation when the provider supports image generation. For Spark, that produces an invalid request.

What steps can reproduce the bug?

  1. Use Codex CLI v0.144.0 or current main with the bundled model catalog.

  2. Run:

    codex -m gpt-5.3-codex-spark
  3. Submit a simple prompt such as Ping.

  4. Observe the warning that gpt-5.3-codex-spark metadata was not found.

  5. Observe the Responses API 400 rejecting the image_generation tool for gpt-5.3-codex-spark-1p-codexswic-ev3.

The catalog change is visible from the release tags:

git show rust-v0.143.0:codex-rs/models-manager/models.json \
  | jq '.models[] | select(.slug | startswith("gpt-5.3-codex")) | .slug'
# "gpt-5.3-codex"

git show rust-v0.144.0:codex-rs/models-manager/models.json \
  | jq '.models[] | select(.slug | startswith("gpt-5.3-codex")) | .slug'
# no output

gpt-5.3-codex-spark-* slugs therefore no longer have a catalog prefix to match and go through model_info_from_slug fallback metadata.

What is the expected behavior?

gpt-5.3-codex-spark should resolve to explicit model metadata instead of unknown-model fallback metadata.

That metadata should preserve the intended Spark capability surface:

  • no fallback warning for gpt-5.3-codex-spark or backend-suffixed Spark slugs,
  • no image_generation tool in the request,
  • text-only / no image-generation capability for Spark,
  • no change to models that actually support image generation,
  • no request to enable image generation on Spark.

Additional information

Relevant code paths:

  • bundled model catalog: codex-rs/models-manager/models.json
  • longest-prefix model lookup: codex-rs/models-manager/src/manager.rs
  • fallback metadata for unknown slugs: codex-rs/models-manager/src/model_info.rs
  • default input modalities for fallback/omitted metadata: codex-rs/protocol/src/openai_models.rs
  • image-generation tool visibility gate: codex-rs/core/src/tools/spec_plan.rs

Related issue:

Likely culprit range:

  • b7807380149d259f905dd23a7e188ba0148878b8 removed the gpt-5.3-codex bundled catalog entry as part of an earlier models.json update.
  • 3380969a29134630d56feb6218e8e8dcc5e8196d is the later models.json update present in current main.

Short implementation plan:

  1. Restore a model-catalog entry/prefix for gpt-5.3-codex-spark with Spark-specific capabilities, especially input_modalities = ["text"] and supports_image_detail_original = false.
  2. Keep gpt-5.3-codex metadata separate if it is still needed for the base family; ensure the more specific Spark prefix wins for gpt-5.3-codex-spark-* backend slugs.
  3. Add a regression test for model lookup showing gpt-5.3-codex-spark-1p-codexswic-ev3 does not use fallback metadata and resolves to text-only Spark metadata.
  4. Add/request planner coverage showing the model-visible tool surface for Spark does not contain image_generation.
  5. Longer term, consider making image-generation support an explicit model capability instead of deriving it from image input modality, since vision/image input and image generation are separate capabilities.

Activity

  1. added
    bug
    CLI
    on Jul 10, 2026
  2. github-actions commented on Jul 10, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. ignatremizov commented on Jul 10, 2026

    @ignatremizov
    Author

    Reviewed the duplicate suggestion against #32018 and #30697.

    #32018 is related and likely shares the same catalog-removal root cause: gpt-5.3-codex no longer has bundled metadata, so it falls through to fallback metadata and loses reasoning/routing behavior.

    This issue is intentionally narrower/different: gpt-5.3-codex-spark also falls through to fallback metadata, and the fallback capability surface causes Codex to advertise image_generation to Spark even though Spark is text-only and should not receive that tool. Restoring only a broad gpt-5.3-codex prefix with image input metadata may not be sufficient unless the more-specific Spark prefix remains text-only / no-image-generation.

    #30697 is a separate custom-provider suffix-matching case. It is another fallback-metadata failure mode, but not the same built-in catalog regression.

  4. ignatremizov commented on Jul 10, 2026

    @ignatremizov
    Author

    Suggested labels to add to the issue: config, regression.

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

    CLIbugimagen

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions