Skip to content

fix(update): improve download reliability and progress reporting - #1049

Draft
marcomarcogd wants to merge 1 commit into
DevXDojo:mainfrom
marcomarcogd:codex/fix-update-download-reliability
Draft

fix(update): improve download reliability and progress reporting#1049
marcomarcogd wants to merge 1 commit into
DevXDojo:mainfrom
marcomarcogd:codex/fix-update-download-reliability

Conversation

@marcomarcogd

Copy link
Copy Markdown
Contributor

Summary

  • reuse the proxy-aware update HTTP client for downloads
  • report real byte progress instead of simulated percentages
  • retry transient network and 5xx failures with bounded backoff
  • resume interrupted downloads with Range and restart safely when unsupported
  • remove incomplete files and keep installation disabled after failure
  • expose short network-specific errors and a manual release-page fallback

This improves reliability but does not bypass networks that cannot reach GitHub and have no usable proxy.

Fixes #1043

Validation

  • go test -timeout=5m ./...
  • frontend Vitest: 81/81
  • auto-update Cypress: 14/14
  • frontend production build
  • target ESLint
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 通过软件更新失败

1 participant