We saw an issue in production whereby we were losing transcripts as part of not waiting long enough during graceful shutdown for them to be properly emitted (2 second timeout is current hardcoded default). I made this PR to try and mitigate this risk by making it a user configurable timeout: Feature - Configurable session close transcript timeout by bml1g12 · Pull Request #5328 · livekit/agents · GitHub
Would be grateful for review when the livekit team get the chance ![]()