Skip to content

fix(codex): update model selector#2740

Open
janburzinski wants to merge 3 commits into
mainfrom
emdash/codex-model-selector-fix-pld3d
Open

fix(codex): update model selector#2740
janburzinski wants to merge 3 commits into
mainfrom
emdash/codex-model-selector-fix-pld3d

Conversation

@janburzinski

Copy link
Copy Markdown
Collaborator

Description

  • update codex model selector to current models
  • remove old/deprecated models: codex-mini-latest,o4-mini,o3
  • new options: gpt-5.5,gpt-5.4-mini,gpt-5.3-codex-spark

Screenshot/Recording (if applicable)

https://cap.link/65tkx6y8n2e4pzg

Checklist
  • I kept this PR small and focused
  • I ran a self-review before opening this PR
  • I ran the relevant local checks or explained why not
  • I updated docs when behavior or setup changed
  • I added or updated tests when behavior changed, or explained why not
  • I only added comments where the logic is not obvious
  • I used Conventional Commits for commit
    messages and, when possible, the PR title

@greptile-apps

greptile-apps Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Updates the Codex plugin model selector to replace three deprecated models (codex-mini-latest, o4-mini, o3) with the current OpenAI Codex model lineup. All three new model IDs are confirmed valid per the official OpenAI Codex models page, and the added description field is supported by the modelOptionSchema.

  • Adds gpt-5.5 (intelligence 5, speed 3) as the recommended flagship model, gpt-5.4-mini (intelligence 4, speed 5) as the fast lightweight option, and gpt-5.3-codex-spark (intelligence 4, speed 5) as the research-preview near-instant model.
  • Each entry gains a new description string, which the schema already supports as an optional field; no schema or test changes are required.

Confidence Score: 5/5

Straightforward model list update; the old models are replaced with current OpenAI offerings and the change is confined to display metadata only.

The three new model IDs match what the official OpenAI Codex models page documents as recommended models. The description field is already optional in modelOptionSchema. No runtime logic, authentication, or data-flow is affected — only the set of selectable model strings shown to the user changes.

No files require special attention; the single changed file is self-contained model metadata.

Important Files Changed

Filename Overview
packages/plugins/src/agents/impl/codex/index.ts Replaces three deprecated Codex model entries (codex-mini-latest, o4-mini, o3) with three current models (gpt-5.5, gpt-5.4-mini, gpt-5.3-codex-spark); adds description fields; all model IDs and schema fields are valid.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[User opens Codex model selector] --> B{Select model}
    B --> C["gpt-5.5\n(intelligence: 5, speed: 3)\nComplex coding & agentic workflows"]
    B --> D["gpt-5.4-mini\n(intelligence: 4, speed: 5)\nLighter tasks & subagents"]
    B --> E["gpt-5.3-codex-spark\n(intelligence: 4, speed: 5)\nNear-instant iteration (research preview)"]
    C --> F[Passed as -m flag to Codex CLI]
    D --> F
    E --> F
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A[User opens Codex model selector] --> B{Select model}
    B --> C["gpt-5.5\n(intelligence: 5, speed: 3)\nComplex coding & agentic workflows"]
    B --> D["gpt-5.4-mini\n(intelligence: 4, speed: 5)\nLighter tasks & subagents"]
    B --> E["gpt-5.3-codex-spark\n(intelligence: 4, speed: 5)\nNear-instant iteration (research preview)"]
    C --> F[Passed as -m flag to Codex CLI]
    D --> F
    E --> F
Loading
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
packages/plugins/src/agents/impl/codex/index.ts:48-52
`gpt-5.3-codex-spark` and `gpt-5.4-mini` are assigned identical `intelligence: 4, speed: 5` ratings. The official Codex models page describes `gpt-5.3-codex-spark` as a research-preview model optimized for near-instant iteration, while `gpt-5.4-mini` is the stable fast model. Differentiating the ratings (e.g. lower intelligence for the older research-preview model) would give users clearer signal in the selector UI.

```suggestion
        'gpt-5.3-codex-spark': {
          name: 'GPT-5.3 Codex Spark',
          description: 'Research-preview Codex model optimized for near-instant iteration.',
          modelFeatures: { intelligence: 3, speed: 5 },
        },
```

Reviews (1): Last reviewed commit: "test(codex): remove model selector cover..." | Re-trigger Greptile

Comment thread packages/plugins/src/agents/impl/codex/index.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant