Repository navigation
fix(desktop): 启动前显示 BootPage - #300
Merged
freedomkk-qfeng merged 6 commits intoNov 8, 2026
Merged
Conversation
普通启动在静态页加载后先显示现有 BootPage,Host 继续在后台启动; 已有下载/迁移提示优先,ready 后仍由 desktopReady 清除提示。保留 失败恢复、隐藏、托盘唤回和单窗口逻辑。
loadURL resolve 后主框架仍可能处于 loading,原逻辑会漏掉首次 did-finish-load 并等到 Host 完成后才显示。仅对已确认文档加载完成 的 Host 启动路径立即显示,保留其他准备提示的等待行为。
JJasonSun
marked this pull request as ready for review
November 7, 2026 17:07
5 tasks done
JJasonSun
marked this pull request as draft
November 8, 2026 05:51
preload 失败可能已在 loadURL 返回前进入 DSH 恢复,此时 startupFailure 仍为空;早显和随后的 startOnce 统一检查恢复、退出和窗口销毁。主窗口 创建前读取本地 closeAction,正式配置准备后仍以最新值为准。
JJasonSun
marked this pull request as ready for review
November 8, 2026 06:17
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.
Summary
关联 #296。普通启动在静态 BootPage 加载后先显示现有 BootPage,Host 继续后台启动;最终工作区窗口仍在 Host ready 后展示。
本批同时补齐两处早期交互边界:
loadURL返回后、早显和startOnce()前统一检查恢复、失败、退出和窗口销毁;preload 已进入恢复而startupFailure为空时不再早显或启动 Host。closeAction;正式配置准备完成后以最新值为准,缺失配置保持tray,配置错误仍走原有恢复。适配仅在 EduWork 桌面壳层;Host、插件加载、包解析、依赖锁和更新语义未改。待 DSH 提供官方提前显示能力后可删除本地适配。
Evidence
当前 head
51b2f60(2026-11-08):3981098暴露了 macOS Dock 主题源切片只移除单个export的问题;dock-theme.electron.mjs已改为去除全部导出,当前 head 重新触发 CI。dsh-host/test/product-profile.test.mjs:213因未设置EDUWORK_TEST_RUNTIME跳过;不是两项平台条件跳过。installer-cleanup.test.mjs整文件:34/34 通过,其中 21 个 native 启动场景全部通过。startup-close-policy.test.mjs(新增):4/4 通过;临时恢复旧user?.closeAction === 'exit'判定时 2 项失败。recovery-preload-failurenative 场景:旧shell-v3失败,修复后的shell-v4通过。--verify-receipt:0 errors、0 warnings;git diff --check通过。shell-v4的 native/product/visibility/presentation 源文件与工作树逐字节一致;隔离产品lib/main.jsSHA-256 为fba29ff23f641e02e5cfec6b9c9a0b1b7f85285589145d56d6a922bf0a164365。validate-pinned-dsh-source.yml和validate-local-web.yml的桌面测试列表。Windows 隔离产品实机(0.4.12 + 当前 shell,非正式安装包):
启动效果
Windows 隔离测试版:
未覆盖边界:
Merge Danger
Door: two-way
只调整启动界面显示时机和早期交互边界,可回滚;不改变数据格式、Host 状态或更新事务。
Blast Radius: desktop startup
普通启动窗口会在 Host 就绪前显示;失败恢复、退出、隐藏、托盘唤回和更新成功语义保留。