How do I stop the avatar session when my LiveKit call ends?

Call avatar.aclose() as part of your agent or room cleanup when the LiveKit call ends. That tells Protoface to stop the avatar session instead of leaving it running.

Idle timeout and max duration can act as backstops, but explicit cleanup is the best habit because it ends the session promptly.