fix(updater): 避免任务运行时直接重启应用 - #434
Merged
su-fen merged 3 commits intoAug 12, 2026
Merged
Conversation
在应用重启前检查仍在运行的会话,并提供稍后重启或确认重启的选择。保留已安装更新的重启入口,同时让安全操作获得默认焦点和更高视觉优先级。
Member
|
我去,我前天刚想做但鸽掉的功能! |
Member
|
建议暂缓合入,目前有一个会破坏“稍后重启”语义的状态机问题:
相关位置:
建议在 controller 根部保护 |
Contributor
Author
|
我去,这种情况我竟然没有注意到! |
更新已安装后忽略手动和托盘检查请求,避免覆盖 installed 状态并隐藏重启入口;补充 controller 级回归测试。
Contributor
Author
|
实现得不是很优雅,不小心推上来了(汗 |
在已安装状态重复检查时保留待重启状态并显示重启提示,同时阻止检查与安装流程互相打断。补充 controller 级竞态和提示生命周期回归测试。
Contributor
Author
|
已在
|
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.
Linked issue
Closes #260
Summary
Change scope
agent-gui,agent-uicrates/agent-gui/src/App.tsxcrates/agent-gui/src/lib/appUpdates.tscrates/agent-gui/src/components/AppUpdateButton.tsxcrates/agent-gui/src/pages/settings/AboutSection.tsxcrates/agent-ui/src/components/ui/confirm-dialog.tsxcrates/agent-gui/test/settings/app-updates.test.mjsScreenshots / preview
有任务运行时的重启保护
安装完成后的侧边栏入口
“关于”页保留已安装状态和重启入口
Verification
pnpm --filter liveagent exec node --test test/settings/app-updates.test.mjs- 11 passedpnpm --filter liveagent test- 1575 passed, 0 failedpnpm --filter liveagent exec tsc --noEmitpnpm --filter liveagent exec biome check src/lib/appUpdates.ts src/pages/settings/AboutSection.tsx src/i18n/config.ts test/settings/app-updates.test.mjspnpm --filter liveagent build.app中验证已安装状态、侧边栏重启入口、关于页重启入口和运行任务确认弹窗Pre-submit checklist