Repository navigation
[BUG][Desktop 0.2.1-rc.3] 安装更新反复失败:desktop update: task inspection timed out —— 任务排空 10 秒死线过短 #11991
ericheroster
started this conversation in
General
Replies: 1 comment
|
我也遇到了 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
环境
现象
点击「安装更新」反复失败,弹窗提示「DSH 安装更新失败,请稍后重试」,技术详情为
desktop update: task inspection timed out。安装包(约 289 MB)已完整下载并通过 SHA512 校验(与 pending/update-info.json 一致),但该安装器自首次下载起数日内多次重试均失败,更新始终未应用。根因分析(基于 0.2.1-rc.3 app.asar 中的代码)
updateTasks(action)→control({ type: "update-tasks", action }, 1e4),10 秒硬死线,超时即抛出该错误。installDesktopUpdateTaskControl在action === "lock"时先locked = true,随后await Promise.all(pendingRequests)排空所有在途connection/request。复现步骤
desktop update: task inspection timed out影响
建议
English summary
Desktop update installation keeps failing with
desktop update: task inspection timed outwhenever an agent task or background job is in flight. Root cause: the shell gives the host only a 10s deadline to drain in-flight API requests (update-taskscontrol call) before authorizing installation; long-running tool calls exceed it. The installer itself downloads and verifies fine. Suggest a longer deadline or retries, a clearer error message, and optionally a "force install" choice.All reactions