Skip to content

feat(settings): add Protect Recycle Bin setting#104

Merged
dbfx merged 2 commits intomainfrom
feat/protect-recycle-bin
Mar 29, 2026
Merged

feat(settings): add Protect Recycle Bin setting#104
dbfx merged 2 commits intomainfrom
feat/protect-recycle-bin

Conversation

@dbfx
Copy link
Copy Markdown
Contributor

@dbfx dbfx commented Mar 29, 2026

Summary

  • Adds a new Protect Recycle Bin toggle in Settings > Cleaning Preferences (default: on)
  • When enabled, the Recycle Bin is skipped in manual cleans (Dashboard quick/full clean), the dedicated Cleaner page, and scheduled runs
  • Existing installs pick up the safe default automatically via deepMerge
  • Translated into all 30 supported languages

Addresses user feedback that Kudu silently empties the Recycle Bin, removing the user's safety net for recovering accidentally deleted files.

Test plan

  • Verify the toggle appears in Settings > Cleaning Preferences and defaults to on
  • With toggle on: run a manual scan from the Cleaner page — Recycle Bin category should not appear
  • With toggle on: run quick clean from Dashboard — Recycle Bin should be skipped
  • With toggle off: Recycle Bin category reappears and is scanned/cleaned normally
  • Create a schedule with cleaner:recycleBin included — verify it is skipped when toggle is on
  • Verify npm run validate:rules passes
  • Verify npx tsc --noEmit produces no new errors

🤖 Generated with Claude Code

The Recycle Bin is a safety net for accidental deletions and should not
be emptied silently during routine cleaning. This adds a new
`protectRecycleBin` toggle (default: true) under Cleaning Preferences
that skips the Recycle Bin in manual cleans, the dedicated Cleaner page,
and scheduled runs. Users can opt out in Settings if they want Kudu to
clean it. Existing installs pick up the safe default via deepMerge.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@dbfx dbfx merged commit 7b52934 into main Mar 29, 2026
3 checks passed
@dbfx dbfx deleted the feat/protect-recycle-bin branch March 29, 2026 13:46
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