VERY long dialogflow-cx API session -15 days!

I am using a simple conversational agent Playbook for automated content moderation on my website (as seen here). For this use case I want a new session for every detectIntent call and when I look at the conversation history that seemed to be the case with sessions being 0.00s in duration but there is one that lasted 22812m16s!

I realised things on my end could have been better. I used gen AI for the Node.js backend interface and it (naturally I guess) assumed session persistence. I have since corrected the code and it generates a new session id for each call now.

Is that figure of 15 days some kind of data anomaly? Is there a way to limit session length in the Node.js dialogflow-cx client library?

I actually specify to “exit this playbook” in the instructions - is that enough for the LLM to terminate the session?