Files
MooTool/next-compose/docs/diff/405-compose-fields-session-generation.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

15 lines
715 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-405:备份/导入重载后 Compose 正文字段同步
## 背景
DIFF-400 在 `sessionGeneration` 递增时原地 `restore` 工具会话。Host 方案正文、文本对比左右栏使用 `remember { TextFieldValue(...) }` 局部状态,仅依赖 `session.content` / `session.left` 变化时偶发未与 SQLite 快照对齐(例如重载后字段值与局部缓存一致性的边界)。
## 行为
- Host:`contentField` 同步 `LaunchedEffect` 增加 `sessionGeneration` 依赖。
- 文本对比:左右 `TextFieldValue` 同步 `LaunchedEffect` 增加 `sessionGeneration` 依赖。
## 验收
- F02/F10、A03(与 DIFF-404 重载链路配合);`./gradlew :composeApp:desktopTest --offline`。