Repository navigation
Commit 8682a42
committed
fix(server): Plan session grants leave hook-forced asks to the user
A PreToolUse hook that returns permissionDecision "ask" reaches canUseTool
with decisionReasonType "hook". Such asks no longer record or reuse the
cached Plan session grant.
AI-assisted; verified with the tests and tools listed above.1 parent 4a4b434 commit 8682a42
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4703 | 4703 | | |
4704 | 4704 | | |
4705 | 4705 | | |
| 4706 | + | |
4706 | 4707 | | |
4707 | 4708 | | |
4708 | 4709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3790 | 3790 | | |
3791 | 3791 | | |
3792 | 3792 | | |
3793 | | - | |
| 3793 | + | |
3794 | 3794 | | |
3795 | 3795 | | |
3796 | 3796 | | |
| |||
3799 | 3799 | | |
3800 | 3800 | | |
3801 | 3801 | | |
| 3802 | + | |
3802 | 3803 | | |
3803 | 3804 | | |
3804 | 3805 | | |
| |||
0 commit comments