Files
MooTool/next-compose/docs/diff/377-quicknote-vault-prepare-selection-rollback.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

931 B
Raw Permalink Blame History

DIFF-377:随手记 prepare 保存失败回滚树选中

背景

JSON DIFF-375~DIFF-376 在 prepareJsonVaultContext flush 失败时回滚 vaultSelectedPath。

随手记 prepareQuickNoteVaultContext 在开头写 vaultSelectedPath,saveIfNeeded 失败时仍指向目录/目标笔记,与 DIFF-360 树单击目录语义不一致。

行为

  • 目录/切换笔记:先 saveIfNeeded;成功后再更新 vaultSelectedPath 并清空或 open;失败恢复 flush 前选中(空则 currentFile),不清空编辑器。

测试

  • 更新 QuickNoteVaultPrepareContextTest.prepareContextSaveConflictWritesErrorAndReturnsFalse
  • 新增 prepareContextDirectorySaveConflictKeepsTreeSelection

验收

  • F01 Vault;desktopTest --offline。