We’re currently sending messages to user browsers via “publish_data” (via room.local participant). For agent tools that aren’t instant, this is how we’re notifying users that the agent is doing something for them, and is how we’re delivering agent output
We’re seeing some of these drop. Noticed that if the agent is executing a tool, but isn’t finished processing, but the user has started another message and the agent responds (before the tool is finished executing), these messages get dropped and the user never receives these events.
What reasons would there be that the user doesn’t receive these messages? What are the best ways to make sure they receive all the intended messages (outside of setting it to “reliable” delivery)?
Do agent tools finish executing even when the user decides to continuing chatting?