You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Large static model catalogues rebuild provider policy for every row #8951
A large static catalogue can make ocx claude miss its 3-second metadata deadline even with no disabled models. The shared catalogue builder repeatedly merges, clones and freezes the full provider policy for each model. The same builder serves /v1/models, Codex catalogue sync and the dashboard Models page. The startup timeout was measured in Claude Code, not in those other clients.
This is separate from the exclusion-list scans in #8945 and #8946.
Reproduction
On dev, configure four OpenAI-compatible providers with liveModels: false. Give each 600 synthetic model IDs in models and a matching modelContextWindows entry per ID. Leave disabledModels empty.
Start the local proxy and warm the catalogue once. Clear the test profile's picker cache before each launch.
Run ocx claude --version three times. The base took 6.7 to 9.1 seconds and missed the picker refresh twice. Direct context metadata reads took 2.83 to 3.02 seconds. No inference request was sent.
Expected: prepare provider-wide policy once per captured provider, preserve per-model metadata, and let the launcher stay within its existing request deadlines.
Version
Upstream dev 45c512dbd, Bun 1.4.4, Claude Code 2.1.328
Operating system
Ubuntu 24.04 LTS (arm64)
Provider and model
Synthetic OpenAI-compatible providers with static catalogues. No upstream account or model is required.
Logs or error output
⚠ Gateway model cache could not be refreshed; the model picker may be stale.
Checks
I searched existing issues and documentation.
I removed secrets, tokens, account details, request credentials, and personal data.
Activity
test(catalog): prove captured static rows reuse provider policy (lidg…
fix(catalog): reuse provider policy across static model rows (#8952)
lidge-jun commentedon Nov 20, 2026
Fixed by #8952, squash-merged into dev as db2a083.