Skip to content

feat(resume): add progress bar when checking existing data#1031

Merged
schollz merged 1 commit intoschollz:mainfrom
murataslan1:feat/resume-progress-bar
Dec 23, 2025
Merged

feat(resume): add progress bar when checking existing data#1031
schollz merged 1 commit intoschollz:mainfrom
murataslan1:feat/resume-progress-bar

Conversation

@murataslan1
Copy link
Copy Markdown
Contributor

Fixes #1026

Summary

Add a progress bar when resuming large file transfers to show progress during the "checking" phase.

Changes

  • Modified MissingChunks() in src/utils/utils.go
  • Progress bar shows "Checking [filename]" for files >10MB
  • Uses existing progressbar library patterns from the codebase
  • Clears on finish using OptionClearOnFinish()

Problem

When resuming a large transfer, there is no visual feedback while the existing file is being checked for missing chunks. This can take a long time for large files and makes users think the application has frozen.

Solution

Display a progress bar during the chunk checking phase for files larger than 10MB, consistent with existing progress bar patterns in the codebase.

Testing

  • Build passes: go build ./...
  • Tests pass: go test ./src/utils/... -run MissingChunks

Fixes schollz#1026

When resuming a large file transfer (>10MB), display a progress bar
showing 'Checking [filename]' while scanning the existing file to
determine which chunks are missing.

This provides visual feedback during the check phase, preventing
users from thinking the application has frozen on large files.
@schollz schollz merged commit 89eb04e into schollz:main Dec 23, 2025
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.

[Idea]: add status/progress bar when checking existing data on receiving side

2 participants