mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:34:51 +08:00
Codex 0.149 rejects the whole config when any non-Bedrock provider table has an empty/missing name, active or not — plain config-only switches never went through the update path's backfill, so prepare now normalizes every custom table (keyless and official writes included). The Bedrock built-ins are the mirror image: they only allow base_url/auth/http_headers/aws.* overrides, and writing name there makes the built-in merge reject the whole config — the proxy takeover rewrites base_url through update_codex_toml_field, so its backfill now skips both reserved ids. Also drop auth/aws as own-credential short-circuits from the official-auth fallback predicate: 0.149 validates both as mutually exclusive with requires_openai_auth, so tables combining them are dead configs the whole file fails to load with — flagging them keeps them from being written.