mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-09-01 14:58:25 +08:00
413c09e079
The Some arm of set_codex_model_catalog_json_field unconditionally overwrote model_catalog_json with the cc-switch-owned filename, discarding any user-provided custom catalog path or filename. This mirrors the ownership check already present in the None arm: only claim the pointer when it is absent or already cc-switch-owned, leaving user-managed external catalog files untouched. Add tests covering both full-path and relative-filename user-owned catalogs in the Some arm.