[Bug]: GPT evals ignore a working `vibeproxy` provider when Codex defaults to another custom provider
Area
Build, CI, or release tooling
Steps to reproduce
-
Use a
~/.codex/config.tomlwhose default provider is a custom provider other than the eval proxy, and keep avibeproxytable for evals:model_provider = "azure" [model_providers.azure] base_url = "https://acme.openai.azure.com/openai" env_key = "AZURE_KEY" [model_providers.vibeproxy] base_url = "http://localhost:8317/v1" experimental_bearer_token = "..." -
From
evals/, runpnpm mcp-tool-use --model gpt-6.1-sol --case NODEV-02 --samples 1 --out runs/check, orpnpm test-signal --out runs/check.
Expected behavior
The evals use the vibeproxy table, as they did before #38573.
Actual behavior
The evals use the azure table. With AZURE_KEY unset, they stop with "reads its key from AZURE_KEY, which is not set". With it set, they send the eval's Codex requests to Azure. There is no setting that selects vibeproxy again.
The cause is evals/shared/proxy.ts:34, added in #38573:
name = config.get('model_provider') if config.get('model_provider') in providers else 'vibeproxy'
Before #38573, the helper always read vibeproxy. Now any custom default provider takes precedence. #38573 fixed #38563, where a provider named anything other than vibeproxy crashed the evals. This is the reverse case: a config that has vibeproxy but defaults to something else.
I reproduced this by running the helper's Python from #38573's head (b928e42, unchanged on main at 56b0777774) against the config above. I did not run a live model call. This was raised in the review of #38573 (https://github.com/pingdotgg/t3code/pull/38573#discussion_r4613884161) but not addressed before merge.
Impact
Major degradation or frequent failure (maintainer and contributor eval tooling only; no product impact).
Version or commit
main @ 56b0777774
Environment
Any OS, Python 3.11+.
Workaround
Run the evals with CODEX_HOME pointing at a directory whose config.toml has no model_provider, or whose model_provider is vibeproxy.
Possible fix
Prefer vibeproxy when that table exists, and fall back to model_provider otherwise:
name = 'vibeproxy' if 'vibeproxy' in providers else config.get('model_provider')
Every config that worked before #38573 keeps working, and the guide-style model_provider = "cliproxy" setup from #38563 still works. The provider-selection sentence in evals/mcp-tool-use/README.md:16 and evals/test-signal/README.md:15 would change to "[model_providers.vibeproxy] when it exists, otherwise the table that model_provider names".