Skip to content

Audit Codex model availability and selector defaults for 5.2, 5.3, Spark, and 5.5 #151

@cbusillo

Description

@cbusillo

Problem

code-gpt-5.3-codex-spark / gpt-5.3-codex-spark appears to be drifting from an always-available built-in selector to a limited or unavailable model path.

Current repo behavior still advertises Spark in several user-facing and runtime defaults:

  • code-rs/core/src/agent_defaults.rs includes code-gpt-5.3-codex-spark as a built-in agent selector and maps it to --model gpt-5.3-codex-spark.
  • code-rs/common/src/model_presets.rs, code-rs/tui/src/bottom_pane/model_selection_view.rs, and code-rs/tui/src/remote_model_presets.rs expose gpt-5.3-codex-spark in model selection paths.
  • README.md, docs/agents.md, docs/config.md, and docs/slash-commands.md still document Spark as a default or supported selector.
  • code-rs/core/src/codex/streaming.rs uses Spark as the auto-context judge primary model.

Evidence suggesting this may no longer be safe:

  • OpenAI's public model index currently lists GPT-5.2-Codex, GPT-5.1-Codex, GPT-5.1-Codex-Max, GPT-5-Codex, and GPT-5.1 Codex mini, but not gpt-5.3-codex-spark: https://platform.openai.com/docs/models
  • The Spark launch post describes GPT-5.3-Codex-Spark as a ChatGPT Pro research preview on Cerebras, not necessarily a generally available API model: https://openai.com/index/introducing-gpt-5-3-codex-spark/
  • The code already has tests/handling for The requested model 'gpt-5.3-codex-spark' does not exist. in code-rs/core/src/client.rs, which is a strong hint that this failure mode is real.
  • Local API probe could not be run from this session because OPENAI_API_KEY is unset.

Suggested Scope

  1. Verify current availability for ChatGPT-auth Codex, API-key Codex, and Pro-only capability paths.
  2. If Spark is unavailable or account-gated, stop advertising code-gpt-5.3-codex-spark as a default built-in selector for unsupported auth contexts.
  3. Replace Spark-dependent internal defaults, especially auto-context judge primary model, with a stable available model or a capability-aware fallback.
  4. Update docs and prompt examples so users are not steered toward a selector that fails immediately.
  5. Add/adjust tests around selector filtering and model-not-found fallback behavior.

Acceptance Criteria

  • Unsupported users do not see or receive code-gpt-5.3-codex-spark as a default agent/model selector.
  • Spark remains available only when capability detection confirms the account can use it, or it is removed entirely if no supported path exists.
  • Auto-context/model fallback behavior avoids hard failures when Spark is missing.
  • Docs match the new selector behavior.

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