Repository navigation
fix(disk-hygiene): call the IFileOperation recycle slots (#4007) - #5097
Closed
kyle-sexton wants to merge 5 commits into
Closed
kyle-sexton wants to merge 5 commits into
kyle-sexton wants to merge 5 commits into
Conversation
Contributor
|
PR body contract — issue linkage This PR body does not yet satisfy the issue-linkage contract:
Edit the body and this comment updates itself on the next run. |
Windows apply uses FOFX_RECYCLEONDELETE after the existing preview and token gate, revalidates bottom-up, and refuses a path the bin cannot accept instead of deleting it permanently. execution_blockers is per primitive. macOS stays unsupported, and the manual handoff remains. Co-authored-by: Kyle Sexton <[email protected]>
The vtable indexes pointed at DeleteItems and past the interface, and the recycle-flag test was parsed as a comparison against zero. Both would let a Windows apply miss the recycle path. HRESULT is not importable from ctypes on Linux, so the COM prototypes use c_long. Co-authored-by: Kyle Sexton <[email protected]>
cursor
Bot
force-pushed
the
cursor/4007-windows-recycle-apply-37e9
branch
from
September 28, 2026 12:37
1745775 to
9ff551c
Compare
…-dashes findings - windows_recycle.py: wrap the FOF_* Windows SDK flag constants in a spellchecker:off/on block; typos read FOF as a typo for FOR. - test_windows_recycle.py: replace the literal C:/Users/me fixture path with the <user> placeholder the machine-specific-paths gate allows. - windows-recycle-security-review.md: rewrite the em dash in the title as a colon; this reference lives on a surface plugins/disk-hygiene already declared purged in scripts/em-dash-purged-paths.txt. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PT4esxbdC7eQiwQxy35Mie
# Conflicts: # plugins/disk-hygiene/.claude-plugin/plugin.json # plugins/disk-hygiene/CHANGELOG.md
Resolve CHANGELOG.md/plugin.json conflicts in disk-hygiene: PR's version 0.29.0 already above main's 0.28.8, kept as-is; both CHANGELOG entries preserved, PR's on top. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PT4esxbdC7eQiwQxy35Mie
Member
Author
8 tasks
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.
Closes #4007.
Summary
The vtable indexes pointed at DeleteItems and past the interface, and the recycle-flag test was parsed as a comparison against zero — both would let a Windows apply miss the recycle path. HRESULT is not importable from ctypes on Linux, so the COM prototypes use
c_long. Failed recycle must not become a permanent delete.Test plan