feat(settings): add autoSaveSettings for lightweight auto-save

Add optimized auto-save function for General tab settings.
- Add autoSaveSettings method for non-destructive auto-save
- Only trigger system APIs when values actually change
- Avoid unnecessary auto-launch and plugin config updates
- Update tests to cover new functionality
This commit is contained in:
YoVinchen
2025-11-22 15:27:32 +08:00
parent 24dc628130
commit cfee4d6fcc
3 changed files with 138 additions and 25 deletions

View File

@@ -84,6 +84,7 @@ describe("useDirectorySettings", () => {
appConfig: "/override/app",
claude: "/remote/claude",
codex: "/remote/codex",
gemini: "/remote/codex", // Gemini 使用 codex 作为默认
});
});