Commit c4d02aa
Yogthos
fix(perm): session allowlist matches absolute paths, suggest_pattern covers all tools, better dialog
HIGH fixes:
- checker.rs: resolve absolute path BEFORE is_session_allowed and
check both raw+absolute forms. Fixes bug where AllowAlways on a
relative path (src/main.rs) didn't match subsequent absolute-path
calls (/Users/.../src/main.rs) to the same file.
- ui/mod.rs: add suggest_pattern arms for all 20+ previously-missing
tools (apply_patch, semantic tools, webfetch, websearch, task,
glob, repo_overview, etc.). These tools previously got placeholder
pattern causing AllowAlways to silently degrade to AllowOnce.
MEDIUM fixes:
- ui/mod.rs: show path context in permission dialog. File tools now
show 'path: src/main.rs (inside project)' instead of generic
'args: 1'. Bash shows 'command:', MCP shows 'mcp:', etc.
- checker.rs: make resolve_absolute pub(crate) for dialog use.
LOW fix:
- checker.rs: add find_definition/find_callers to is_path_tool_name
so their rules use path-glob semantics (matches check_perm_path).1 parent 2c920ab commit c4d02aa
2 files changed
Lines changed: 80 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
494 | 496 | | |
495 | 497 | | |
496 | 498 | | |
497 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
498 | 507 | | |
499 | 508 | | |
500 | 509 | | |
501 | | - | |
502 | 510 | | |
503 | 511 | | |
504 | 512 | | |
| |||
855 | 863 | | |
856 | 864 | | |
857 | 865 | | |
858 | | - | |
| 866 | + | |
859 | 867 | | |
860 | 868 | | |
861 | 869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3577 | 3577 | | |
3578 | 3578 | | |
3579 | 3579 | | |
3580 | | - | |
3581 | | - | |
3582 | | - | |
3583 | | - | |
3584 | | - | |
3585 | | - | |
3586 | | - | |
3587 | | - | |
3588 | | - | |
3589 | | - | |
| 3580 | + | |
| 3581 | + | |
3590 | 3582 | | |
3591 | 3583 | | |
3592 | 3584 | | |
3593 | 3585 | | |
| 3586 | + | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
| 3592 | + | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
| 3605 | + | |
| 3606 | + | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
| 3610 | + | |
| 3611 | + | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
3594 | 3620 | | |
3595 | 3621 | | |
3596 | 3622 | | |
| |||
4753 | 4779 | | |
4754 | 4780 | | |
4755 | 4781 | | |
4756 | | - | |
4757 | | - | |
| 4782 | + | |
| 4783 | + | |
| 4784 | + | |
| 4785 | + | |
| 4786 | + | |
| 4787 | + | |
| 4788 | + | |
| 4789 | + | |
| 4790 | + | |
| 4791 | + | |
| 4792 | + | |
| 4793 | + | |
| 4794 | + | |
| 4795 | + | |
| 4796 | + | |
| 4797 | + | |
| 4798 | + | |
| 4799 | + | |
| 4800 | + | |
| 4801 | + | |
| 4802 | + | |
| 4803 | + | |
| 4804 | + | |
| 4805 | + | |
| 4806 | + | |
| 4807 | + | |
| 4808 | + | |
| 4809 | + | |
| 4810 | + | |
| 4811 | + | |
| 4812 | + | |
| 4813 | + | |
| 4814 | + | |
4758 | 4815 | | |
4759 | 4816 | | |
4760 | 4817 | | |
| |||
0 commit comments