Files
cc-switch/src-tauri/src
T
YoVinchen 73fea48049 refactor(config): extract common config merge to shared function
Address code audit findings #1, #2, #6, #7, #11:

- Extract merge logic to merge_config_for_live() in config_merge.rs
- Add is_common_config_enabled() helper function
- Add MergeResult struct with config and optional warning
- Update live.rs and proxy.rs to use the shared function
- Add logging for JSON parse failures instead of silent fallback
- Convert Chinese error messages to error codes (CODEX_CONFIG_*)
- Support both flat and wrapped formats for Gemini common config

This eliminates code duplication between live.rs and proxy.rs,
making future maintenance easier and preventing behavioral drift.
73fea48049 ยท 2026-01-26 15:25:13 +08:00
History
..
2026-01-23 10:41:38 +08:00
2026-01-11 20:50:54 +08:00
2025-12-31 22:57:00 +08:00
2025-11-22 19:18:35 +08:00
2025-12-05 11:26:41 +08:00