Skip to content

chore: rm -rf deny rule blocks the documented cleanup #884

Closed

Description

@EVWorth

.claude/settings.json denies Bash(rm -rf /*) to stop a root wipe. The pattern is a prefix match, so it also blocks every rm -rf on an absolute path. That includes the cleanup the cloud-session notes in CLAUDE.md tell agents to run when the disk fills:

rm -rf $REPO/src-tauri/target/debug/incremental
→ blocked by a deny rule

The workarounds are a relative path or find -delete. Both get around the rule rather than respect it.

Fix

Pick one:

  • Narrow the rule to the dangerous forms: Bash(rm -rf /), Bash(rm -rf /*) written as an exact command, Bash(rm -rf ~) and Bash(rm -rf $HOME).
  • Keep it broad, and add a just clean-debug recipe (or a script) that deletes src-tauri/target/debug/incremental and stale large test binaries. Point the CLAUDE.md cloud-session note at that recipe.

The second also helps local contributors.

Activity

  1. added
    bug
    on Oct 24, 2026
  2. added a commit that references this issue on Oct 24, 2026
    05085c2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions