Repository navigation
feat(downloads): resumable downloads with pause that survive app restarts - #14
Merged
Merged
Conversation
ghostcoder42
commented
Oct 13, 2026
Owner
- downloading tasks have a Pause button; pausing parks the native task at a clean boundary (pauseAsync) and the row shows Paused with Resume/Delete — the progress bar resumes where it stopped
- Retry/Resume continues from the bytes already on disk (resumeAsync + Range) instead of restarting from zero; after an app restart the partial file's size rebuilds the resumable (the native layer truncates to it and sends Range: bytes=-)
- user-paused tasks stay paused across restarts; tasks that died with the process come back as errored ("Interrupted"); the orphan cleanup now spares partial files of unfinished tasks (hydrate restores tasks before reconciling, so the resume points survive)
- when resuming is impossible (expired source URL, range rejected), retry falls back to a fresh download with a re-resolved source
- cancelling an errored/paused task deletes its partial file too
- the post-page download button is store-driven (same story as the library row and tile badges), so its retry/resume works; the long-press menu offers "Resume download" for errored/paused tiles
💯 Test Coverage
😎 Tests Results
👀 Tests Details • (58%)
|
ghostcoder42
force-pushed
the
feat/resumable-downloads
branch
2 times, most recently
from
October 14, 2026 21:17
53a1f7a to
a8083ba
Compare
…arts
- downloading tasks have a Pause button; pausing parks the native task
at a clean boundary (pauseAsync) and the row shows Paused with
Resume/Delete — the progress bar resumes where it stopped
- Retry/Resume continues from the bytes already on disk (resumeAsync +
Range) instead of restarting from zero; after an app restart the
partial file's size rebuilds the resumable (the native layer truncates
to it and sends Range: bytes=<size>-)
- user-paused tasks stay paused across restarts; tasks that died with
the process come back as errored ("Interrupted"); the orphan cleanup
now spares partial files of unfinished tasks (hydrate restores tasks
before reconciling, so the resume points survive)
- when resuming is impossible (expired source URL, range rejected),
retry falls back to a fresh download with a re-resolved source
- cancelling an errored/paused task deletes its partial file too
- the post-page download button is store-driven (same story as the
library row and tile badges), so its retry/resume works; the
long-press menu offers "Resume download" for errored/paused tiles
ghostcoder42
force-pushed
the
feat/resumable-downloads
branch
from
October 14, 2026 21:24
a8083ba to
f71503d
Compare
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.