Repository navigation
Commit e4ef65c
committed
fix: root-level permission config not being respected
In fromConfig, wildcard permission keys like "*" could end up after
specific tool keys (like "bash") due to key reordering from mergeDeep
during config merging. Since evaluate uses findLast, the catch-all
"*" rule would win over the more specific tool rule.
Fix by sorting wildcard permission keys before specific keys in
fromConfig so specific tool rules always appear later and take
precedence.
Closes anomalyco#88321 parent 25f3eef commit e4ef65c
2 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
655 | 668 | | |
656 | 669 | | |
657 | 670 | | |
| |||
0 commit comments