Files
MooTool/next-compose/docs/diff/149-legacy-java-config-setting-patch.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

22 lines
1.2 KiB
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-149:Java `config.setting` 设置补丁迁移
## 背景
Electron `legacySettingsPatch` 从 Java 版 `config/config.setting`(INI 分组)读取语言、外观、布局、编辑器、代理、Vault Git、工具项等,并在迁移后合并进本产品设置。next-compose 此前只导入 Electron `mootool-next.json` 自定义分组,不处理 Java 配置文件。
## 行为
- `LegacyJavaSettings`:解析 `config/config.setting`,生成与 Electron 对齐的 `applyPatch`(不含代理密码 / Vault token)。
- `CrossProductImporter.inspect`:检测 Java 配置、写入指纹、发出 `legacy:differentVaultRemotes` / `legacy:secretsSkipped` 警告码。
- 确认导入后:`MigrationSettingsPanel` 在合并自定义分组的同时 `updateSettings { applyPatch }`。
- 设置页预览显示 Java 配置是否找到,并将警告码翻译为中文/英文说明。
## 证据
- `./gradlew :composeApp:desktopTest --offline`(`LegacyJavaSettingsTest`、`CrossProductImporterTest` 含 `config.setting`)。
## 未覆盖
- Electron Next 自身 `mootool-next.json` 全量设置合并(仍仅 customGroups)。
- 相对路径导出目录仍按 DIFF-142 在加载时清除,仅导入绝对路径。