Files
cc-switch/src-tauri/tests
Jason 370d089be8 fix(prompt): only clear the prompt file when the last enabled prompt is disabled
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.
2026-10-01 23:20:06 +08:00
..