mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:27:03 +08:00
Saving any disabled prompt emptied the app's prompt file whenever no prompt was enabled, so adding or importing a prompt wiped a hand-written AGENTS.md or Hermes SOUL.md without a backup. A deeplink import also lost the file before enable_prompt could back it up. Follow the MiniMax Code branch: read the previous row before saving and clear the file only when this prompt was enabled, is now disabled, and no other prompt is enabled.