Skip to content

fix(codex): hide gpt-5.5-pro for Codex OAuth users - #12040

Merged
chrarnoldus merged 2 commits into
Kilo-Org:mainfrom
rakshith1928:fix/hide-models-oauth
Jul 10, 2026
Merged

fix(codex): hide gpt-5.5-pro for Codex OAuth users#12040
chrarnoldus merged 2 commits into
Kilo-Org:mainfrom
rakshith1928:fix/hide-models-oauth

Conversation

@rakshith1928

Copy link
Copy Markdown
Contributor

Issue

Fixes #12038

Context

When authenticated with OpenAI using Codex OAuth (ChatGPT Plus/Pro), Kilo displayed gpt-5.5-pro in the model picker even though the model is not supported by the Codex OAuth backend. Selecting it resulted in a 400 Bad Request response from the server

Implementation

Added a DISALLOWED_MODELS set to the Codex OAuth plugin and excluded gpt-5.5-pro during model filtering for OAuth authentication.

The existing fallback logic for supported GPT models remains unchanged, so only the unsupported model is filtered out while API key authentication continues to expose all available models.

Also added regression tests covering:

  • gpt-5.5-pro is hidden for OAuth users.
  • Supported Codex/GPT models remain available for OAuth users.
  • Non-OAuth (API key) authentication is unaffected.

Screenshots / Video

n/a (small change)

How to Test

Manual/local verification

  • Built the extension locally.
  • Signed in using OpenAI Codex OAuth.
  • Verified gpt-5.5-pro no longer appears in the model picker.
  • Verified supported GPT/Codex models are still available.
  • Verified API key authentication continues to expose gpt-5.5-pro.

Reviewer test steps

  • Sign in using OpenAI → ChatGPT (Codex OAuth).
  • Open the model picker.
  • Verify gpt-5.5-pro is not listed.
  • Switch to an OpenAI API key.
  • Verify gpt-5.5-pro is available.

Blocked checks and substitute verification

No additional blockers encountered.

Checklist

  • Issue linked above, or exception explained
  • Tests/verification described
  • Screenshots/video included for visual changes, or marked N/A
  • Changeset considered for user-facing changes
  • I personally reviewed the diff and can explain the changes, including any AI-assisted work.

Get in Touch

@travix26

@kilo-code-bot

kilo-code-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • .changeset/hide-gpt-5-5-pro.md
  • packages/opencode/src/plugin/openai/codex.ts
  • packages/opencode/test/plugin/codex.test.ts

Incremental update: the only change since the last review is a marker-only commit adding kilocode_change annotations around the existing DISALLOWED_MODELS logic and tests, with no functional change. No new issues found.

Previous Review Summary (commit 93c209b)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 93c209b)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • .changeset/hide-gpt-5-5-pro.md
  • packages/opencode/src/plugin/openai/codex.ts
  • packages/opencode/test/plugin/codex.test.ts

Reviewed by claude-sonnet-5-20260630 · Input: 20 · Output: 3.2K · Cached: 476K

Review guidance: REVIEW.md from base branch main

@johnnyeric
johnnyeric requested a review from chrarnoldus July 10, 2026 10:17
@chrarnoldus chrarnoldus self-assigned this Jul 10, 2026

@chrarnoldus chrarnoldus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks

@chrarnoldus
chrarnoldus merged commit 1cfc1c1 into Kilo-Org:main Jul 10, 2026
23 checks passed
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…auth

fix(codex): hide gpt-5.5-pro for Codex OAuth users
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.

Codex OAuth incorrectly shows unsupported gpt-5.5-pro model

2 participants