修复订阅下载假进度与安装中断 - #304
Draft
wnlen wants to merge 1 commit into
Draft
Conversation
Replace the timer-based progress capped at 94% with an elapsed wait indicator and concise curl failure reasons. Allow install-time download failures and Ctrl+C cancellation to skip subscription setup while preserving normal update failures. Root cause: the UI displayed synthetic progress while curl could wait much longer for an external response. Refs #298
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.
修改内容
Ctrl+C 可跳过clash sub update等日常更新仍返回失败根因
下载 UI 使用与真实字节无关的定时模拟进度,约 4 秒后固定在 94%;后台 curl 仍可能长时间等待外部网络或订阅服务器响应,因此用户会误以为程序卡死。
验证
bash -n install.sh scripts/core/common.sh scripts/core/config.sh scripts/core/clashctl.sh scripts/dev/check-subscription-download-feedback.shbash scripts/dev/check-subscription-download-feedback.shscripts/dev/check-*.sh通过;zsh 检查因测试环境未安装 zsh 按自身规则跳过Refs #298