feat: support resume for mainframe ZIP downloads#10
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/kocdigital/sf-cli-service/sessions/aecd9d2b-0aa2-4e6a-b073-fc35209906b5 Co-authored-by: asimtahir-karakus-kd <209095940+asimtahir-karakus-kd@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement HTTP 206 support for resumable ZIP downloads
feat: support resume for mainframe ZIP downloads
Apr 17, 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.
Large mainframe ZIP downloads had no resume capability — any interruption required a full re-download from scratch.
Changes
lib/commands/serve/streempublic.jsfs.existsSync/fs.statSyncon the destination before starting; capturesexistingBytesRange: bytes=N-header whenexistingBytes > 0; uses plainhttp.getotherwiseflags: 'a'when resuming so existing data is preserveddownloadedByteswithresumeFromso progress bar reflects true overall completion from the first chunkResuming MainFrame Xpublic Zip download from byte N...when continuing an interrupted downloadfs.unlinkcallbacks — all unlink calls now include error-handling callbacks for consistency