Bug fix: Allow::load was never called, so "allow always" rules were not persisted across runs. Now loaded from <project>/.hx/allow.json at TUI start.
--yolo (or permissions = "yolo" in config.toml): TUI sets no permit hook, nothing prompts.
Finer bash rules: "always" stores bash:<cmd> <subcommand> * (e.g. cargo test *, also matches bare cargo test). Risky first words (rm, sudo, curl, sh, git, find, env, xargs, ...) store the exact command only. Chained/redirected/substituted commands (; & | < > $ ( )or newline) have no rule: the prompt offers no "always" and they never match a stored rule, socargo test && rm -rf ~cannot ride oncargo test *`.
Rules are * globs on the full command line, no argument-aware matching.
Follow-up to #118.
- **Bug fix**: `Allow::load` was never called, so "allow always" rules were not persisted across runs. Now loaded from `<project>/.hx/allow.json` at TUI start.
- **`--yolo`** (or `permissions = "yolo"` in config.toml): TUI sets no permit hook, nothing prompts.
- **Finer bash rules**: "always" stores `bash:<cmd> <subcommand> *` (e.g. `cargo test *`, also matches bare `cargo test`). Risky first words (rm, sudo, curl, sh, git, find, env, xargs, ...) store the exact command only. Chained/redirected/substituted commands (`; & | < > ` $ ( )` or newline) have no rule: the prompt offers no "always" and they never match a stored rule, so `cargo test && rm -rf ~` cannot ride on `cargo test *`.
- Rules are `*` globs on the full command line, no argument-aware matching.
Tests: rule derivation + narrow matching + persistence, prompt without "always", `tests/all.sh` green.
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.
Follow-up to #118.
Allow::loadwas never called, so "allow always" rules were not persisted across runs. Now loaded from<project>/.hx/allow.jsonat TUI start.--yolo(orpermissions = "yolo"in config.toml): TUI sets no permit hook, nothing prompts.bash:<cmd> <subcommand> *(e.g.cargo test *, also matches barecargo test). Risky first words (rm, sudo, curl, sh, git, find, env, xargs, ...) store the exact command only. Chained/redirected/substituted commands (; & | < >$ ( )or newline) have no rule: the prompt offers no "always" and they never match a stored rule, socargo test && rm -rf ~cannot ride oncargo test *`.*globs on the full command line, no argument-aware matching.Tests: rule derivation + narrow matching + persistence, prompt without "always",
tests/all.shgreen.