Commit 82908df
fix(subagent): respect ANNOUNCE_SKIP in sessions_spawn direct completion delivery
When a sub-agent spawned via sessions_spawn (mode="run") replies with
exactly ANNOUNCE_SKIP, the completion message was still being delivered
directly to the originating channel. The isAnnounceSkip check existed
in the agent-to-agent announce path but was missing from the direct
completion delivery path.
This fix adds the isAnnounceSkip check before calling
deliverSubagentAnnouncement, suppressing completion delivery when
the sub-agent replies exactly ANNOUNCE_SKIP.
Fixes #258001 parent 9ef0fc2 commit 82908df
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
1141 | 1142 | | |
1142 | 1143 | | |
1143 | 1144 | | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1144 | 1150 | | |
1145 | 1151 | | |
1146 | 1152 | | |
| |||
1264 | 1270 | | |
1265 | 1271 | | |
1266 | 1272 | | |
1267 | | - | |
| 1273 | + | |
| 1274 | + | |
1268 | 1275 | | |
1269 | 1276 | | |
1270 | 1277 | | |
| |||
0 commit comments