Expand description
Event forwarding from MPSC to broadcast channels.
Creates an MPSC channel for agent loop events and spawns a background task that relays events to the session’s broadcast sender while tracking runner diagnostic state (budget events, tool execution, round progress).
Functions§
- create_
event_ forwarder - Create an MPSC channel for agent events and spawn a forwarding task that relays events to the broadcast sender while tracking runner diagnostic fields for live visibility.