[PR #10666] fix(codex): remove non-existent gpt-5.2-codex from allowed models #13519

Closed
opened 2026-02-16 18:18:22 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10666

State: closed
Merged: No


Summary

Fixes #10500

The gpt-5.2-codex model was included in the allowedModels set in the Codex plugin, but this model does not exist in OpenAI's API. This causes a 404 "Not Found" error for fresh installations when the plugin tries to use this model.

Changes

  • Removed gpt-5.2-codex from the allowed models list in packages/opencode/src/plugin/codex.ts

Root Cause

The model gpt-5.2-codex was likely anticipated but never released by OpenAI. The available Codex models are:

  • gpt-5.1-codex
  • gpt-5.1-codex-max
  • gpt-5.1-codex-mini
  • gpt-5.2 (non-codex variant)

Testing

Verified that the removed model does not exist in OpenAI's API and that the remaining models are valid.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10666 **State:** closed **Merged:** No --- ## Summary Fixes #10500 The `gpt-5.2-codex` model was included in the `allowedModels` set in the Codex plugin, but this model does not exist in OpenAI's API. This causes a 404 "Not Found" error for fresh installations when the plugin tries to use this model. ## Changes - Removed `gpt-5.2-codex` from the allowed models list in `packages/opencode/src/plugin/codex.ts` ## Root Cause The model `gpt-5.2-codex` was likely anticipated but never released by OpenAI. The available Codex models are: - `gpt-5.1-codex` - `gpt-5.1-codex-max` - `gpt-5.1-codex-mini` - `gpt-5.2` (non-codex variant) ## Testing Verified that the removed model does not exist in OpenAI's API and that the remaining models are valid.
yindo added the pull-request label 2026-02-16 18:18:22 -05:00
yindo closed this issue 2026-02-16 18:18:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13519