[PR #7608] fix: allow model variants in OAuth Codex filter #12451

Open
opened 2026-02-16 18:17:21 -05:00 by yindo · 0 comments
Owner

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

State: open
Merged: No


Summary

  • Fixed model variant filtering in Codex OAuth plugin to allow user-defined variants
  • Previously only exact model IDs were allowed (e.g., gpt-5.2-codex)
  • Now variants like gpt-5.2-codex-low, gpt-5.2-codex-high, gpt-5.2-codex-xhigh are also allowed

Problem

Users who defined custom reasoning effort variants in their opencode.json under the openai provider found that these variants were being filtered out by the Codex plugin's OAuth loader.

Solution

Changed the filter logic from exact Set matching to prefix-based matching.

Fixes #7593

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7608 **State:** open **Merged:** No --- ## Summary - Fixed model variant filtering in Codex OAuth plugin to allow user-defined variants - Previously only exact model IDs were allowed (e.g., `gpt-5.2-codex`) - Now variants like `gpt-5.2-codex-low`, `gpt-5.2-codex-high`, `gpt-5.2-codex-xhigh` are also allowed ## Problem Users who defined custom reasoning effort variants in their `opencode.json` under the `openai` provider found that these variants were being filtered out by the Codex plugin's OAuth loader. ## Solution Changed the filter logic from exact Set matching to prefix-based matching. Fixes #7593
yindo added the pull-request label 2026-02-16 18:17:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12451