fix(codex): route bare codex-auto-review to the Codex provider (#4135)

This commit is contained in:
Amirsalar Sojoudi authored and decolua committed 2026-09-18 17:05:47 +07:00
1 parent 4641c2b76a
commit efc80ba2e3
3 files changed
+49

No files matched your search

+2
View File
@@ -124,6 +124,8 @@ export async function getModelInfoCore(modelStr, aliasesOrGetter) {
// Config-driven prefix → provider inference (first match wins, fallback "openai").
const MODEL_PREFIX_PROVIDERS = [
// Codex CLI sends this bare virtual model for auto-review — keep it on OAuth Codex (#1398).
[/^codex-auto-review$/, "codex"],
[/^claude-/, "anthropic"],
[/^gemini-/, "gemini"],
[/^gpt-/, "openai"],