Files
MooTool/next-compose/docs/diff/184-git-commit-push-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

13 lines
654 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# DIFF-184:Vault Git 提交/推送前刷新编辑器
## 行为
- **F01/F04 / A03**:`VaultGitDialog` 在 **commit**、**push** 前调用 `onFlush()`,保证 Git 操作针对磁盘上的 Vault/笔记内容,而不是未保存缓冲区。
- 仍对齐 Electron:`pull`/`continue-operation` 刷新;`discard`/`resolve`/`abort` 不刷新;`fetch`/`init`/配置 remote 等无 `GitVaultFlushAction` 的操作不额外 flush(打开面板时 `load()` 仍会 flush 一次)。
- 策略集中在 `GitEditorFlushPolicy` + `GitVaultFlushAction`。
## 验证
- `GitEditorFlushPolicyTest`
- `./gradlew :composeApp:desktopTest --offline`(**342/342**)