mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-09-20 12:13:38 +08:00
fix: harden destructive command matching
This commit is contained in:
@@ -296,10 +296,6 @@ This leaves no orphaned tool result. It also preserves the record of a file writ
|
||||
> **Boundary with s09:** s08 manages the limited context of the current session and may discard recoverable details. s09 stores information that must survive compaction and future sessions.
|
||||
|
||||
|
||||
## Inherited permission rule
|
||||
|
||||
This chapter carries forward the permission hook from s04. It recognizes `rm` and `del` case-insensitively only as complete command words at the start of a command or after a shell separator (`;`, `&&`, `||`, `|`, `&`, parentheses, or a newline). It does not treat `model`, `delimiter`, or `echo del test.txt` as destructive.
|
||||
|
||||
## Try It
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user