mirror of
https://github.com/rememberber/MooTool.git
synced 2026-12-01 03:18:19 +08:00
将 Vault/Git/MCP/AI、壳层主题密度、25 工具真实闭环与 desktopTest 638 项及 DIFF-065–471 文档/证据一并纳入仓库,便于持续对齐验收;产品窗 IME/冲突与三平台发行仍待验。 Co-authored-by: Cursor <cursoragent@cursor.com>
689 B
689 B
DIFF-332:JSON Vault Git flush 跳过已保存文件
问题
Electron prepareGitAction 在 !dirty 时直接放行,不在 pull/continue 前写盘。Compose JSON onFlush 每次 Git flush 都调用 saveJsonVault(含 toast),即使 editor.text == savedText(250ms 自动保存后常见),多余 IO 且可能打断用户。
随手记 Git 已用 saveIfNeeded/quickNoteDirty;JSON 未对齐。
行为
- 已命名文件且
editor.text == savedText:onFlush返回null(无需写盘)。 - 仍有脏内容时
saveJsonVault(..., showToast = false),避免 Git 前重复 success toast。
验证
./gradlew :composeApp:desktopTest --offline