mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-06-16 13:34:04 +08:00
7811383b59
* fix(codex): use relative filename for model_catalog_json Instead of writing an absolute path (which breaks on WSL/symlink setups), write only the filename "cc-switch-model-catalog.json" to config.toml. Codex CLI resolves relative paths from the config directory, and both files always reside in the same directory (~/.codex/). This eliminates the need for UNC-to-Linux path translation and makes the config portable across Windows, WSL, and symlinked directories. Also simplifies ownership checks in resolve_cc_switch_catalog_path() and set_codex_model_catalog_json_field() by removing dead string-equality comparisons that never matched on WSL. Closes farion1231/cc-switch#3573 Related: farion1231/cc-switch#3569 * style(codex): fix rustfmt violations in model_catalog tests Wrap a >100-col UNC-path line and remove a trailing blank line that broke 'cargo fmt --check' in Backend CI. Style-only, no logic change. --------- Co-authored-by: steponeerror <huxaio0207@qq.com> Co-authored-by: Jason <farion1231@gmail.com>
7811383b59
·
2026-06-03 14:52:57 +08:00
History