Conversation
将 useAppUpdater 状态机提升为 UpdaterProvider 全局单例, 顶部横幅与设置卡片共享同一份状态;启动、窗口聚焦、定时三时机 静默检查,运行中即可发现新版本。新增可点击的顶部横幅承载下载 与重启,替换原来只弹 Toast 却无法操作的启动提示。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
成功分支原先只把命令写入输入框,脚本已存在或重复点击时 onChange diff 为空、无可见反馈。现按后端返回的 result.installed 区分「已安装」 与「已是最新」各弹一条成功 Toast,并补充对应测试。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
概述
本次改动围绕应用内更新体验与 macOS 托盘退出行为,包含新增功能、缺陷修复与热路径重构。
主要变更
更新体验
UpdateBanner+UpdaterProvider):检测到新版本时在顶部常驻提示,支持运行中自动检查。useAppUpdater逻辑。托盘退出修复
RunEvent::Exit统一移除托盘图标,覆盖 Cmd+Q 与 relaunch 两条退出路径。配置
测试
新增 / 更新以下测试:
UpdateBanner.test.tsx、UpdaterProvider.test.tsx、useAppUpdater.test.tsxProfileEditor.test.tsx、SettingsDrawer.test.tsx🤖 Generated with Claude Code