Skip to content

fix(cleaner): say when a scheduled run left items in place - #1950

Open
PathGao wants to merge 1 commit into
vorssaint:mainfrom
PathGao:fix/cleaner-report-failed-runs
Open

PathGao wants to merge 1 commit into
vorssaint:mainfrom
PathGao:fix/cleaner-report-failed-runs

Conversation

@PathGao

@PathGao PathGao commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Summary

The scheduled cleanup only saved how much it freed. When a run could not move anything to the Trash (every item failed), the Cleaner card still said "Last automatic cleanup ." like a normal run, so the failure was invisible unless notifications were on. The run now also saves how many items it left in place, and the card adds the existing "Some items couldn't be moved to the Trash." line when that number is above zero. No new strings; the count stays out of settings backups like the other last-run values.

Verification

  • Apple M5, macOS 27.0.
  • ./build.sh --test: TESTS OK (61,543 checks). A new contract runs the real finishRun and the Cleaner card's real last-run line together, and checks that a run which left items in place adds the partial-failure line while a clean run does not.
  • ./build.sh: compiles and links with 0 warnings.

The scheduled cleanup only saved the bytes it freed, so a run where every item failed looked like a normal run on the Cleaner card. It now saves the failed count and the card adds the existing partial-failure line.
@PathGao
PathGao requested a review from vorssaint as a code owner September 24, 2026 06:17
@vorssaint vorssaint added ready to merge Reviewed, CI green, no conflict, no ordering constraint priority: low No hurry. Severity and reach both low, or one low and one middling. labels Sep 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: low No hurry. Severity and reach both low, or one low and one middling. ready to merge Reviewed, CI green, no conflict, no ordering constraint

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants