fix(harness): emit subagent end before parent completion (#2544)
## Description ### Background The Harness stream-event tests can intermittently miss the sourced child `AGENT_END` event. The child end event was emitted from `doFinally`, which runs after the terminal signal has propagated downstream. For a quickly completing child agent, the parent can therefore complete and close its event sink before the child end event is forwarded.
J
Joe Zou committed
2d1a5e6e9607f08aa9cbcb9d46909b24f39dae97
Parent: d3a9783
Committed by GitHub <noreply@github.com>
on 8/4/2026, 7:17:26 AM