SWE-Rebench v2 hard task
harbor run -t ibragim-badertdinov/Soju06__codex-lb-744harbor download ibragim-badertdinov/Soju06__codex-lb-744Stale 'client_version' fallback causes 503 'no_plan_support_for_model' for newer models (e.g. gpt-5.5) when GitHub releases API rate-limits
When app/core/clients/codex_version.py cannot fetch the latest codex release from api.github.com/repos/openai/codex/releases/latest (e.g. anonymous-rate-limited with HTTP 403), it logs:
GitHub releases API returned HTTP 403
GitHub fetch failed and no cached version; falling back to settings default 0.101.0
and falls back to Settings.model_registry_client_version (default 0.101.0). The model registry refresh (app/core/openai/model_refresh_scheduler.py → clients/model_fetcher.fetch_models_for_plan) then asks upstream /codex/models?client_version=0.101.0. Upstream gates newer model slugs behind newer client versions, so the response excludes e.g. gpt-5.5.
As a result, ModelRegistry.model_plans never gets a gpt-5.5 entry, _filter_accounts_for_model in modules/proxy/load_balancer.py:1168 returns an empty set, and every Codex request for gpt-5.5 is rejected with:
proxy_error_response status=503 code=no_plan_support_for_model
message=No accounts with a plan supporting model 'gpt-5.5'
…even though the actual Codex CLI is on 0.130.0 and the account's ChatGPT subscription does support the model (calling /backend-api/codex/models?client_version=0.130.0 through the LB returns 200 with the model present).
ghcr.io/soju06/codex-lb:1.17.0 on a host where anonymous GitHub API requests are 403'ed.@openai/codex@0.130.0) configured with model = \"gpt-5.5\".GitHub fetch failed and no cached version; falling back to settings default 0.101.0POST /backend-api/codex/responses returns 503 with code no_plan_support_for_model.Setting CODEX_LB_MODEL_REGISTRY_CLIENT_VERSION=0.130.0 and recreating the container fully resolves the symptom.
A few low-effort options, any one would help:
model_registry_client_version on each release so it tracks the recent @openai/codex version (or read it from a generated file at build time).npm view @openai/codex version against https://registry.npmjs.org is not rate-limited the way the GitHub anonymous API is, and a static fetch of https://registry.npmjs.org/@openai/codex/latest returns JSON containing \"version\".client_version query string as a hint for which model list to refresh (only when greater than the configured default), so a newer client effectively bootstraps the registry.For anyone hitting this, pass -e CODEX_LB_MODEL_REGISTRY_CLIENT_VERSION=<your-codex-cli-version> to docker run:
docker run -d \\
-e CODEX_LB_DASHBOARD_BOOTSTRAP_TOKEN=... \\
-e CODEX_LB_MODEL_REGISTRY_CLIENT_VERSION=0.130.0 \\
-p 2455:2455 -p 1455:1455 \\
-v codex-lb-data:/var/lib/codex-lb \\
ghcr.io/soju06/codex-lb:1.17.0
ghcr.io/soju06/codex-lb:1.17.0@openai/codex@0.130.0pro (3 accounts, all plan_type=pro in store.db)Related: #480 ("Model metadata for gpt-5.5 not found. Defaulting to fallback metadata") looks like the same underlying cause.
No new interfaces are introduced.