Skip to content

Add OpenAI's GPT-5.3-Codex model support#11728

Merged
hannesrudolph merged 4 commits intoRooCodeInc:mainfrom
PeterDaveHello:feat/gpt-5.3-codex-support
Feb 24, 2026
Merged

Add OpenAI's GPT-5.3-Codex model support#11728
hannesrudolph merged 4 commits intoRooCodeInc:mainfrom
PeterDaveHello:feat/gpt-5.3-codex-support

Conversation

@PeterDaveHello
Copy link
Contributor

@PeterDaveHello PeterDaveHello commented Feb 24, 2026

Description

This PR adds OpenAI Native provider support metadata for gpt-5.3-codex and adds focused unit coverage for model resolution.

What changed:

  • Add gpt-5.3-codex to openAiNativeModels in packages/types/src/providers/openai.ts.
    • maxTokens: 128000
    • contextWindow: 400000
    • Tool support: apply_patch included, apply_diff and write_to_file excluded
    • Reasoning effort: low, medium, high, xhigh with default medium
    • Temperature: disabled
    • Prompt cache: enabled with 24h retention
    • Tiers: priority only (input: 3.5, output: 28, cacheReads: 0.35 per unit)
  • Add coverage in src/api/providers/__tests__/openai-native.spec.ts for selecting gpt-5.3-codex via OpenAiNativeHandler#getModel().
    • Verifies model id
    • Verifies maxTokens and contextWindow
    • Verifies supportsReasoningEffort

Rationale:

  • Ensure gpt-5.3-codex is resolvable through existing OpenAI Native model-path logic and that metadata stays aligned with current model configuration.

Test Procedure

Run:

pnpm --filter roo-cline exec vitest run api/providers/__tests__/openai-native.spec.ts

Result:

  • Pass: 1 test file, 40 tests

Notes:

  • I intentionally did not modify src/api/providers/__tests__/openai-native-usage.spec.ts to keep this PR scoped to native model registration + direct model lookup test coverage.

Pre-Submission Checklist

  • Issue Linked: Link an approved issue (currently pending).
  • Scope: Changes are focused on a single model support update.
  • Self-Review: Diff reviewed for minimal and relevant impact.
  • Testing: Added/updated test covers the new model path.
  • Documentation Impact: Verify whether docs or model lists need updates.
  • Contribution Guidelines: Contributor requirements reviewed.

Screenshots / Videos

Not applicable (no UI changes).

Documentation Updates

  • No documentation updates are required.
  • Yes, documentation updates are required. (Please update user-facing model docs if required.)

Interactively review PR in Roo Code Cloud

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 24, 2026
@PeterDaveHello PeterDaveHello changed the title Add GPT-5.3 Codex native model metadata Add OpenAI's GPT-5.3-Codex model support Feb 24, 2026
@PeterDaveHello PeterDaveHello force-pushed the feat/gpt-5.3-codex-support branch from 11c51fb to fcb61c7 Compare February 24, 2026 21:20
Copy link
Collaborator

@hannesrudolph hannesrudolph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, changes are consistent with 5.2-codex pricing and structure.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 24, 2026
Copy link
Collaborator

@hannesrudolph hannesrudolph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by Roo Ops on behalf of Hannes.

@hannesrudolph hannesrudolph merged commit 2541449 into RooCodeInc:main Feb 24, 2026
7 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Feb 24, 2026
@roomote roomote bot mentioned this pull request Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants