Files
MooTool/next-compose/docs/diff/359-json-vault-open-flush.md
RememBerBerandCursor c834db2a83 feat(next-compose): 对照 Electron 落地 F00–F25 与 A01–A03 主体能力
将 Vault/Git/MCP/AI、壳层主题密度、25 工具真实闭环与 desktopTest 638 项及 DIFF-065–471 文档/证据一并纳入仓库,便于持续对齐验收;产品窗 IME/冲突与三平台发行仍待验。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 06:51:45 +08:00

710 B
Raw Permalink Blame History

DIFF-359:JSON Vault 树打开文件前统一 flush

问题

DIFF-356~DIFF-358 已在导入/历史/弹层写入前 flush。Vault 树 打开另一片段仍手写 saveJsonVault(成功时带保存 toast),与 Git 面板/移动等路径的 flushJsonVaultEditorIfDirty(showToast = false)不一致。

行为

  • VaultTreeList.onOpen:非目录项打开前 flushJsonVaultEditorIfDirty;失败则提示并中止;成功则 loadJsonVaultSnippet。
  • 无 currentFile 或已保存时 flush 为 no-op(与原先「仅脏时保存」一致)。

验证

  • ./gradlew :composeApp:desktopTest --offline