Commit 8aa82f4
fix(go): add permission handler to abort test and regenerate snapshot
The abort test creates a session with nil config and waits for
tool.execution_start. After the default-deny fix (requestPermission=true
always sent), tool calls are denied before execution, so the event never
fires and the test times out.
Add OnPermissionRequest: PermissionHandler.ApproveAll so the shell tool
can start executing, then be interrupted by the abort.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 63852b5 commit 8aa82f4
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
467 | 469 | | |
468 | 470 | | |
469 | 471 | | |
| |||
0 commit comments