Agent not joining room after deleting and recreating with same name

This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.

I’m seeing an issue with agent dispatch consistency:

  1. Create room via API with agent dispatch
  2. Agent joins as expected
  3. All participants leave
  4. Delete the room and agent dispatch
  5. Recreate the room with the same name and agent dispatch
  6. New agent never joins!

Are there any consistency guarantees with agent dispatches?

It’s recommended to use a unique room name for each dispatch.

When you delete a room, it can take time to propagate the state and the room ID may linger even though the session was deleted. In that case, when you create a room with the same name, it may bind back to the original room.

There is no guaranteed contract for when a room is completely gone from cache..