Skip to content

fix: clamp download progress percentages#1520

Merged
jackwener merged 2 commits into
jackwener:mainfrom
hiSandog:fix/strict-progress-total-20260513
May 13, 2026
Merged

fix: clamp download progress percentages#1520
jackwener merged 2 commits into
jackwener:mainfrom
hiSandog:fix/strict-progress-total-20260513

Conversation

@hiSandog
Copy link
Copy Markdown
Contributor

Summary

  • Clamp download progress percentages to the 0-100 range before rendering the terminal bar
  • Add regression tests for over-complete and negative byte counts so progress rendering does not throw

Tests

  • npx vitest run --project unit src/download/progress.test.ts
  • npm run typecheck
  • git diff --check

@jackwener jackwener merged commit a6ca53c into jackwener:main May 13, 2026
11 checks passed
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.

2 participants