Repository navigation
fix(cli): name the resume directory when a get stops (#2473) - #2531
Merged
Merged
Conversation
…omitted (#2473) A decdn get run without -o keeps its .partial state in the current directory, which the command line does not record. The interrupt line now names that directory, so a re-run from another directory does not start over and pay again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Code coverage overviewLanguages: Rust Rust / code-coverage/cargo-llvm-cov
View coverage of the 6 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
#2473) A give-up advises a re-run the same way an interrupt does, and a relative -o resolves against the current directory like the default destination. Both now name the directory to run the command again from. An absolute -o and -o - name none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
thiras
approved these changes
Oct 19, 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.
Closes #2473.
Summary
decdn getwhose destination is relative (no-o, or a relative-o) keeps its resume state (.partial,.partial.ranges, a bundle's.decdn-partial/and.decdn-bundles/) under the current directory, which the command line does not record. A stopped run now names that directory:interrupted; run the same command again from <cwd> to resume(exit 130)no progress for 10m; rerun from <cwd> to resume(exit 75)-oand-o -keep the plain lines.interrupt::ResumeFromis attached as error context (same pattern asUnreconciledEscrows) byname_resume_dir, only to anInterruptedorGaveUperror;stop_messagereads it. AnopenPool/topUpin flight still replaces the re-run advice, and exit codes are unchanged.get()wraps both the blob and the bundle route throughwith_resume_hint.Tests
interrupt/tests.rs: interrupt and give-up name the directory and keep exit 130/75; plain error and success untouched; an in-flight escrow wins over the directory on both stops.get/tests.rs: throughwith_resume_hint: blob and bundle URIs with no-oor a relative-oname the cwd; an absolute-oand-o -do not.Gates run locally:
cargo nextest run -p decdn-cli(846 passed),cargo clippy --workspace --all-targets -- -D warnings,cargo fmt -- --check,CARGO_BUILD_WARNINGS=deny cargo doc --workspace --no-deps --document-private-items.🤖 Generated with Claude Code