mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-22 00:20:23 +01:00
b62d73e4bc
This change introduces hardcoded security rules for the terminal tool that cannot be bypassed by any setting, including `always_allow_tool_actions`. ## Currently Blocked Commands - `rm -rf /` - Recursive deletion of root filesystem - `rm -rf ~` - Recursive deletion of home directory These rules are checked **before** the `always_allow_tool_actions` global flag, ensuring they can never be bypassed. The rules also check parsed sub-commands, so `ls && rm -rf /` is also blocked. Release Notes: - Certain known-bad tool uses are now automatically blocked, such as the terminal tool attempting to run `rm -rf /` or `rm -rf ~`