mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 08:14:33 +08:00
c4795e98ff
Codex >= 0.144.5 requires supports_reasoning_summaries in every external model catalog entry and rejects the whole file at startup when it is missing, which bricks both the CLI and the desktop app. The ProxyChat catalog template is cloned from dynamic sources first (models_cache.json, then `codex debug models --bundled`). models_cache.json is shared by every Codex install on the machine and each version serializes its own ModelInfo shape, so the cache's field set follows whichever process wrote it last and cannot be assumed to satisfy the current external-catalog schema. Deleting the generated catalog never helped: any provider save or switch regenerated it from the same stale template. Backfill parser-required fields (explicit whitelist, currently only supports_reasoning_summaries) from the bundled static template when the dynamic template lacks them. Optional capability fields are deliberately NOT backfilled so their missing-means-parser-default semantics survive, and existing values always win.