[PR #13402] feat: include configured OpenAI models in Codex OAuth allowlist #14646

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

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

State: open
Merged: No


Summary

  • add a helper to build the OpenAI OAuth allowlist from built-in defaults plus user-configured OpenAI model keys
  • keep existing default Codex/OpenAI model IDs in place for backward compatibility
  • add unit tests that verify both default retention and configured-model inclusion

Why

OpenAI OAuth filtering currently allows only a hardcoded model set. As a result, user-configured OpenAI model aliases in config.provider.openai.models are filtered out and cannot be selected in OAuth sessions.

Changes

  • update OAuth filtering logic in packages/opencode/src/plugin/codex.ts
  • add tests in packages/opencode/test/plugin/codex.test.ts

Closes #13401

Test

  • bun test test/plugin/codex.test.ts
  • result: 15 passed, 0 failed
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13402 **State:** open **Merged:** No --- ## Summary - add a helper to build the OpenAI OAuth allowlist from built-in defaults plus user-configured OpenAI model keys - keep existing default Codex/OpenAI model IDs in place for backward compatibility - add unit tests that verify both default retention and configured-model inclusion ## Why OpenAI OAuth filtering currently allows only a hardcoded model set. As a result, user-configured OpenAI model aliases in `config.provider.openai.models` are filtered out and cannot be selected in OAuth sessions. ## Changes - update OAuth filtering logic in `packages/opencode/src/plugin/codex.ts` - add tests in `packages/opencode/test/plugin/codex.test.ts` Closes #13401 ## Test - `bun test test/plugin/codex.test.ts` - result: 15 passed, 0 failed
yindo added the pull-request label 2026-02-16 18:19:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14646