Repository navigation
fix(desktop): 复用 DSH 启动恢复与原生交互 - #284
Merged
freedomkk-qfeng merged 5 commits intoNov 11, 2026
Merged
Conversation
接入上游恢复、语言缓存和脱敏诊断,协调启动取消、Host 停止及退出。Windows 启动器通过退出码接续重启,直接 Electron 使用原生 relaunch。合并中间启动器尝试与回执刷新,保留最终简化实现。 Source-snapshot: 2e8415e
移除独立 HTML 恢复页,配置下载、离线导入和组件修复沿用系统原生交互;保留产品业务操作与对应测试。 Source-snapshot: db34971
修正启动器标记继承、严格重启与更新交接竞争、旧 BootPage 隐藏、配置重试进度及发行版品牌;补齐对应回归。 Source-snapshot: b396888
前端启动失败时收起旧 BootPage,下载重试期间支持再次激活唤回;自动重启失败保留上游错误提示,并在诊断报告中记录回退与清理结果。 Source-snapshot: 5bbe5d7
JJasonSun
force-pushed
the
fix/startup-recovery-native
branch
from
November 10, 2026 08:19
5bbe5d7 to
738e977
Compare
JJasonSun
marked this pull request as ready for review
November 10, 2026 08:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与修改
落实 #226 的启动错误子项,复用 DSH 的恢复流程与原生交互,让启动失败后可以诊断、重试或退出,减少独立界面的维护。
app.relaunch();更新器已接管时完成退出,避免与其健康检查、回退流程竞争。验证
Windows 配置故障对比(合成数据,展示恢复页到原生对话框的交互变化):
macOS 配置故障对比(同一台 Apple M1 / macOS 27.3,合成 HTTP 503 故障):
截图展示界面差异,最终源码的运行验收如下:
installer-cleanup、startup-failure、startup-presentation,126 通过、1 项平台跳过;macOS 提交方记录 220 通过、5 跳过。源码回执审计通过。当前 head CI 10 项成功,npmcheck按路径筛选跳过。兼容性与后续事项