Skip to content

fix(ui): show real-time progress during cleaner clean operation#72

Merged
dbfx merged 2 commits intomainfrom
fix/cleaner-progress-during-clean
Mar 24, 2026
Merged

fix(ui): show real-time progress during cleaner clean operation#72
dbfx merged 2 commits intomainfrom
fix/cleaner-progress-during-clean

Conversation

@dbfx
Copy link
Contributor

@dbfx dbfx commented Mar 24, 2026

Summary

  • The clean operation deleted files silently with zero progress events, causing the progress bar to jump to ~98% and freeze until all deletions completed
  • Added a throttled (120ms) onProgress callback to cleanItems() that reports per-file progress as files are deleted
  • All 6 clean IPC handlers (system, browser, app, gaming, shortcut, database) now send SCAN_PROGRESS events with phase: 'cleaning' so the UI updates in real-time with the current file path and progress percentage
  • Updated CleanerPage to distinguish scanning vs cleaning progress and initialize the progress bar immediately when cleaning starts

Test plan

  • All 1891 existing tests pass
  • Run a scan, then clean — verify the progress bar advances smoothly showing file paths as they're deleted
  • Verify scanning progress is unaffected (still works as before)
  • Test with a mix of categories (some with items, some empty) — progress should still advance correctly
  • Test with secure delete enabled — progress should still update between overwrites

🤖 Generated with Claude Code

The clean operation deleted files silently with no progress events,
causing the progress bar to freeze near 100% until all deletions
completed. Add throttled progress reporting to cleanItems() and all
clean IPC handlers so the UI updates per-file during cleaning.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dbfx
Copy link
Contributor Author

dbfx commented Mar 24, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9c298e97cf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- Progress denominator now uses only categories with selected items
  instead of all 7 categories, so partial cleans reach 100% correctly
- Database optimizer emits progress even when a cached item ID is
  missing, preventing the bar from stalling below 100%

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dbfx dbfx merged commit 46e3d01 into main Mar 24, 2026
8 checks passed
@dbfx dbfx deleted the fix/cleaner-progress-during-clean branch March 24, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant