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

This commit is contained in:
Amirsalar Sojoudi
2026-09-18 17:03:57 +07:00
committed by decolua
parent 4641c2b76a
commit efc80ba2e3
3 changed files with 49 additions and 0 deletions

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"],