Repository navigation
Commit 7a5fbdc
fix: propagate subagent permission events; clarify session_error scope
- run.ts: emit permission_rejected/permission_granted for subagent
sessions too (previously filtered out), matching the existing
subagent tool_use pass-through. Fixes an asymmetry where a
subagent's denied tool surfaced as a failed tool_use with no
explaining permission_rejected event.
- EVENTS.md: document that session_error is strictly for abnormal
termination; session_complete.error may carry concatenated non-fatal
errors without a preceding session_error. Alerting should key on
session_error.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent a95d7dc commit 7a5fbdc
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
| 628 | + | |
| 629 | + | |
629 | 630 | | |
630 | 631 | | |
631 | 632 | | |
| |||
648 | 649 | | |
649 | 650 | | |
650 | 651 | | |
651 | | - | |
| 652 | + | |
652 | 653 | | |
653 | 654 | | |
654 | 655 | | |
| |||
0 commit comments