mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-17 10:29:11 +08:00
a1e7961af3
write_live_snapshot was incorrectly passing the already-extracted env sub-field to json_to_env, which expects the full settings_config object. This caused json_to_env to look for env.env (nested), returning an empty HashMap and writing an empty .env file. Fix by delegating to write_gemini_live which correctly handles env file writing and security flag configuration in one place.