Files
MooTool/next-compose/docs/diff/198-git-panel-load-no-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

759 B
Raw Permalink Blame History

DIFF-198:Git 面板打开/刷新不再隐式 flush

背景

Electron VaultGitDialog.load 仅拉取 status/history,不调用 prepareGitAction 或保存编辑器。

Compose 曾在 load()(打开面板、点刷新)时无条件 onFlush(),与 Electron 不一致,且会在用户只想查看变更时触发保存/toast。

行为

  • VaultGitDialog.load() 去掉 onFlush()。
  • 仍通过 GitEditorFlushPolicy 在 pull / continue-operation / commit / push 等动作前 flush(commit/push 为 compose 在 DIFF-184 上的增强,保证提交内容与缓冲区一致)。

验证

  • ./gradlew :composeApp:desktopTest --offline
  • 对照 next/src/features/json/VaultGitDialog.tsx load 与 JsonVaultPanel.prepareGitAction