Repository navigation
fix(cli): print [Verified] once a checksum matches, as documented - #628
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
`ketch --checksum sha256:… <url>` never printed the [Verified] line the CLI README promises: downloadUntilDone cancelled the progress monitor as soon as the download ended, before it printed the completed state. The command now reads the final state itself and prints the line, for a checksum the user gave or one the server published, before "Download completed"; the monitor no longer prints completed or failed states, which the command reports.
linroid
force-pushed
the
fix/cli-verified-line
branch
from
October 23, 2026 17:20
858185c to
3c47018
Compare
Contributor
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.
Found while testing
--checksumwith the CLI.cli/README.mdsays:but it never did. Across every download in this test run, none printed
[Verified](or the[Completed] Saved to …line from the same branch):Why
downloadUntilDonecancels the progress monitor as soon astask.await()returns. That is when the task turnsCompleted, so the monitor almost never got to print the completed state, whereProgressPrinterprinted[Verified]. The line depended on a race the monitor nearly always lost.What changes
downloadUntilDonereads the task's final state itself and, on success, prints[Verified] <algorithm> matchesbeforeDownload completed: <path>. This covers both a checksum the user gave and a digest the server published (Repr-Digest), which Ketch also verifies.ProgressPrinterno longer printsCompletedorFailedstates, which the command reports itself, so neither can appear twice if the monitor does win the race.Now:
Verification
ketchfrom this branch prints the line for--checksumand for a server-publishedRepr-Digest.DownloadCommandTest.download_matchingChecksum_saysItWasVerified; the test helper takes achecksum../gradlew :cli:test --tests '*DownloadCommandTest*' --tests '*ProgressLineTest*'passes.