Skip to content

fix(update): report download progress and reclaim abandoned temporaries - #55

Merged
whackur merged 2 commits into
code0xff:devfrom
whackur:fix/update-progress-and-sweep
Sep 14, 2026
Merged

whackur merged 2 commits into
code0xff:devfrom
whackur:fix/update-progress-and-sweep

Conversation

@whackur

@whackur whackur commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Why

nightcrow update printed nothing while streaming a ~14 MiB release binary, so a slow download is indistinguishable from a no-op — users interrupt it, which in turn leaves .nightcrow-download-* temporaries that sweep never reclaimed (it only matched *.nightcrow-old.N).

What

  • update reports the download: a start line with the asset size, a throttled in-place percentage on a terminal, one line per 10% on a plain log, and a verifying line before the checksum check.
  • sweep also removes .nightcrow-download-* leftovers, but only those older than an hour, so it cannot unlink the temporary of an update that is still running.
  • Documented both in docs/getting-started.md.

Verification

cargo fmt --all --check, cargo clippy --locked --workspace --all-targets --all-features -- -D warnings, and cargo test --locked --bin nightcrow are green at each commit (the intermediate commit was verified in a separate worktree).

@whackur
whackur merged commit 3767b41 into code0xff:dev Sep 14, 2026
11 of 12 checks passed
This was referenced Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant