Commit 3cfab54
fix: log subagent swallowed errors in hook emission and restore paths
Wire createSubsystemLogger into the two silent catch blocks that
discard errors during subagent lifecycle:
1. emitSubagentEndedHookOnce (subagent-registry-completion.ts):
catch { return false } -> catch (err) { log.warn(...); return false }
2. restoreSubagentRunsOnce (subagent-registry.ts):
catch { /* ignore */ } -> catch (err) { log.warn(...) }
Both paths now log the error message before continuing, providing
a diagnostic trail when hook emission or disk restore fails silently.
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>1 parent f68ed72 commit 3cfab54
2 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
116 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
650 | | - | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
651 | 653 | | |
652 | 654 | | |
653 | 655 | | |
| |||
0 commit comments