Repository navigation
feat(desktop): 恢复官方设置入口与托盘交互 - #261
Merged
Merged
Conversation
JJasonSun
marked this pull request as ready for review
November 1, 2026 13:30
JJasonSun
marked this pull request as draft
November 2, 2026 05:15
托盘通过官方设置 store 打开设置,合并启动期间的重复请求,并在其他入口打开设置或插槽卸载时结束等待。Windows 单击托盘恢复窗口,附回归测试、客户端产物和源码回执。
JJasonSun
force-pushed
the
feat/settings-entry
branch
from
November 2, 2026 06:06
bd81d4e to
f2c5a78
Compare
JJasonSun
marked this pull request as ready for review
November 2, 2026 06:15
将现有软件更新快照映射为官方 DesktopUpdatePresentation,新增按文档隔离的只读状态观察、工作台状态复用和 Windows check/download/install 错误归属;更新面板与事务保持原样。
Electron carrier 下由官方侧栏指示表达软件更新,footer 仅保留配置/Skills 内容提醒,Wails/Web 仍保留旧提醒;补充浏览器回归、官方入口到现有面板的真实 preload/IPC 贯通 probe 和 native startup 夹具。
按最终源码使用 audit-eduwork-distribution 的文件集重新生成 source-receipt.json,并通过 --verify-receipt 校验。
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 的设置入口和 Windows 托盘行为。分支已同步 main
6051bde,使用 0.4.10 的 DSH0.2.1-rc.5基线。sidebar.settingsstore 打开设置。设置已经打开时,重复点击保持打开。phase状态,最多等待 5 秒;重复点击合并,不重置首次期限。可见的引导或其他弹窗仍优先结束,这部分等待不受会话列表的 5 秒期限限制。configForms,移除旧接口兼容分支和未使用的服务注入;配置命名空间及用户偏好保持不变。为什么需要托盘适配
锁定的 DSH 托盘提供打开窗口和退出,EduWork 另外保留了托盘“设置”入口。设置界面和打开动作仍直接复用 DSH。
冷启动时,DSH 的首次引导可能在设置打开后出现。上游会关闭设置,让引导接管界面,因此立即调用打开动作可能出现设置刚打开就关闭的情况。本 PR 只协调 EduWork 托盘请求的执行时机:等当前引导或弹窗结束,再交给官方设置 store。它不修改 DSH 的引导、侧栏按钮或通用设置行为,也不依赖模拟点击、固定快捷键或另一套设置界面。
验证
以下结果对应 head
be774042:MutationObserver,5 项检查通过:重复请求保留首次期限、已打开请求不造成关闭后重开、其他入口打开结束等待、弹窗结束后打开、卸载取消。会话状态和插件上下文为合成测试输入;这不是完整桌面验收。git diff --check通过。此前
.10包的 Windows 托盘单击、隐藏/最小化恢复、重复打开、Escape 与重开已由用户手工验收,但该包属于旧 head / rc.3,不能代替本 head 的桌面验收。本轮未构建完整 Windows 开发包:fork 的 Actions 已被禁用,开发工作流请求返回 HTTP 422。本 head 的原生托盘鼠标操作、完整设置界面、主题/键盘/焦点恢复尚待用新包验证;macOS 实机按当前安排暂缓。真实 OIDC 登录仍缺机构测试配置,未执行;未运行完整 Web/Host 功能验收脚本。
合并风险
可回退本 PR,无用户数据迁移。影响范围是桌面设置入口与托盘激活,配置命名空间、用户偏好和数据格式不变。
启动错误恢复、更新状态显示及安装迁移继续分别处理,不纳入本 PR。