Permission gate now parses command lines quote-aware instead of matching characters.
split_cmd splits at unquoted |, &&, ;; ||, &, $, backticks, parens, <, other redirects, newlines and open quotes make the command unparsable (always asks, no rule).
2>&1, 2>&2, >/dev/null, &>/dev/null are accepted.
Read-only pipelines with quoted metacharacters (rg "a|b" src | tail, rg -o 'fn (a|b)') no longer prompt. -o is only blocked for sort; rg --pre asks. cd <dir> is free.
"allow always" on a chain stores one rule per non-read-only segment (go test ./... 2>&1 | tail -30 -> bash:go test *); allows() requires every segment to be read-only or covered. cargo test && rm -rf ~ stores bash:cargo test * + exact bash:rm -rf ~, so the rule cannot cover the rm.
Popup lists all stored rules joined by , .
Tests: new asserts in permit.rs; tests/all.sh green (169 unit + all e2e).
Permission gate now parses command lines quote-aware instead of matching characters.
- `split_cmd` splits at unquoted `|`, `&&`, `;`; `||`, `&`, `$`, backticks, parens, `<`, other redirects, newlines and open quotes make the command unparsable (always asks, no rule).
- `2>&1`, `2>&2`, `>/dev/null`, `&>/dev/null` are accepted.
- Read-only pipelines with quoted metacharacters (`rg "a|b" src | tail`, `rg -o 'fn (a|b)'`) no longer prompt. `-o` is only blocked for `sort`; `rg --pre` asks. `cd <dir>` is free.
- "allow always" on a chain stores one rule per non-read-only segment (`go test ./... 2>&1 | tail -30` -> `bash:go test *`); `allows()` requires every segment to be read-only or covered. `cargo test && rm -rf ~` stores `bash:cargo test *` + exact `bash:rm -rf ~`, so the rule cannot cover the rm.
- Popup lists all stored rules joined by `, `.
Tests: new asserts in permit.rs; `tests/all.sh` green (169 unit + all e2e).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Permission gate now parses command lines quote-aware instead of matching characters.
split_cmdsplits at unquoted|,&&,;;||,&,$, backticks, parens,<, other redirects, newlines and open quotes make the command unparsable (always asks, no rule).2>&1,2>&2,>/dev/null,&>/dev/nullare accepted.rg "a|b" src | tail,rg -o 'fn (a|b)') no longer prompt.-ois only blocked forsort;rg --preasks.cd <dir>is free.go test ./... 2>&1 | tail -30->bash:go test *);allows()requires every segment to be read-only or covered.cargo test && rm -rf ~storesbash:cargo test *+ exactbash:rm -rf ~, so the rule cannot cover the rm.,.Tests: new asserts in permit.rs;
tests/all.shgreen (169 unit + all e2e).