Skip to content

feat: PreferTrash rule — trash over rm for user files#71

Open
N4M3Z wants to merge 1 commit into
mainfrom
prefertrash-rule
Open

feat: PreferTrash rule — trash over rm for user files#71
N4M3Z wants to merge 1 commit into
mainfrom
prefertrash-rule

Conversation

@N4M3Z

@N4M3Z N4M3Z commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Problem

rm deletions of user files are unrecoverable and rightly blocked by the destructive-command guards, which stalls agent sessions.

Approach

Rule: delete user files with macOS /usr/bin/trash (recoverable, guard-friendly); rm stays for scratch and regenerable content only.

@N4M3Z

N4M3Z commented Jul 9, 2026

Copy link
Copy Markdown
Owner Author

Should be moved to forge-apple as it applies to macOS only. Or if there is a universal way for this to apply to Windows and Linux, make that adjustment instead.

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