Commit df45c44
fix(subagent): add logging for silent errors in subagent communication (#310)
- Replace silent 'let _ =' patterns with proper error logging in spawn_subagent
- Log errors when ToolEvent channel send fails (Started, Failed, Completed, TodoUpdated)
- Add warning when stream ends without Done event
- Log status update failures in AgentThread.set_status()
This helps diagnose issues where subagents stop without returning results.
Co-authored-by: Droid <droid@factory.ai>1 parent d1d3e3a commit df45c44
File tree
2 files changed
+414
-373
lines changed- cortex-agents/src
- cortex-tui/src/runner
2 files changed
+414
-373
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 72 | | |
78 | 73 | | |
79 | 74 | | |
| |||
119 | 114 | | |
120 | 115 | | |
121 | 116 | | |
122 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
0 commit comments