feat(resume): add progress bar when checking existing data#1031
Merged
schollz merged 1 commit intoschollz:mainfrom Dec 23, 2025
Merged
feat(resume): add progress bar when checking existing data#1031schollz merged 1 commit intoschollz:mainfrom
schollz merged 1 commit intoschollz:mainfrom
Conversation
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.
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.
Fixes #1026
Summary
Add a progress bar when resuming large file transfers to show progress during the "checking" phase.
Changes
MissingChunks()insrc/utils/utils.goOptionClearOnFinish()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
go build ./...go test ./src/utils/... -run MissingChunks