Repository navigation
[codex] Scope model cache by provider and account - #30984
won-openai wants to merge 1 commit into
Conversation
|
I found an additional production-shaped cache dimension that this draft does The A/B reproduction uses:
Changing only originator returns different With the current The regression test that distinguishes the two designs is:
That likely requires independent per-identity slots/files (plus atomic |
|
Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
Why
Guardian intentionally resolves
codex-auto-reviewthrough an offline model-catalog lookup. The on-diskmodels_cache.jsonwas shared across every configured provider and ChatGPT account, while cache eligibility checked only client version and TTL.That allowed another provider or account refresh to overwrite the file. The next OpenAI Guardian lookup then applied the foreign catalog and reported
catalog_missing. The regression test reproduces the production symptom: cache an OpenAI catalog containingcodex-auto-review, overwrite it from a second provider, then perform an offline OpenAI lookup. Before this fix,codex-auto-reviewdisappeared.What changed
Validation
just test -p codex-models-manager— 40 passed.just test -p codex-model-provider— 50 passed.codex-app-server,codex-memories-write, andcodex-coretests passed.just fix -p codex-models-manager -p codex-model-provider -p codex-core -p codex-app-server -p codex-memories-writejust fmt