Unified progress reporting for compression and extraction operations#1044
Merged
adamhathcock merged 22 commits intomasterfrom Dec 19, 2025
Merged
Unified progress reporting for compression and extraction operations#1044adamhathcock merged 22 commits intomasterfrom
adamhathcock merged 22 commits intomasterfrom
Conversation
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Copilot stopped work on behalf of
adamhathcock due to an error
November 27, 2025 16:58
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Contributor
Author
Completed the progress reporting feature (0f374b2). Added:
Usage example: var progress = new Progress<CompressionProgress>(p =>
Console.WriteLine($"{p.EntryPath}: {p.PercentComplete:F1}%"));
var options = new ZipWriterOptions(CompressionType.Deflate) { Progress = progress };
using var writer = new ZipWriter(archiveStream, options);
writer.Write("file.txt", sourceStream, DateTime.Now); |
Copilot
AI
changed the title
[WIP] Add progress reporting during compression operations
Add progress reporting during compression operations
Nov 27, 2025
Owner
|
@copilot remove IExtractionListener and ReaderProgress in favor of this new approach. Reimplement progress for reading like this. |
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Copilot stopped work on behalf of
adamhathcock due to an error
November 29, 2025 15:55
Owner
|
Continue |
Owner
|
@copilot retry |
…s support for reading Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
…eporting Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Contributor
Author
Completed the refactoring (7af029b). Removed Changes made:
Usage: // Extraction progress
var progress = new Progress<ProgressReport>(p =>
Console.WriteLine($"{p.EntryPath}: {p.PercentComplete:F1}%"));
var options = new ReaderOptions { Progress = progress };
using var reader = ReaderFactory.Open(stream, options); |
adamhathcock
requested changes
Nov 30, 2025
Owner
adamhathcock
left a comment
There was a problem hiding this comment.
Archive Entry reading and writing should also have progress using the same interface and style.
…e Entry extraction Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>
This was referenced Jan 5, 2026
This was referenced Jan 12, 2026
This was referenced Jan 19, 2026
This was referenced Jan 26, 2026
This was referenced Feb 11, 2026
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.
Unified progress reporting for compression and extraction operations
Adds unified progress reporting support using the
IProgress<T>interface for both compression and extraction operations, similar to what 7-Zip's GUI provides.Changes Made
New Progress Reporting API
ProgressReportclass: Reports progress withEntryPath,BytesTransferred,TotalBytes, andPercentCompletepropertiesProgressReportingStream: Internal stream wrapper that tracks read operations and reports progressWriterOptions.Progress:IProgress<ProgressReport>?property for compression progressReaderOptions.Progress:IProgress<ProgressReport>?property for reader-based extraction progressIArchiveEntry.WriteTo/WriteToAsync: Now accept optionalIProgress<ProgressReport>?parameter for archive entry extraction progressRemoved Old Event-Based Progress Reporting
IExtractionListener,IReaderExtractionListener,IArchiveExtractionListenerinterfacesReaderProgress,ListeningStream,ArchiveExtractionEventArgsclassesCompressedBytesReadEventArgsandFilePartExtractionBeginEventArgsIArchiveandIReaderinterfacesMultiVolumeReadOnlyStream,RarArchiveEntry,RarReaderto remove listener dependenciesMerged from Master
Fixes #1027
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.