appendContext with 0 ttl does not work as expected

According to the comment for the “ttl” parameter in the appendContext, a value of 0 for ttl should result in a context being appended with no expiration. However in practice, a context added this way expires after 1 turn.

I am using botpress v12_6_0 on windows 64, though I have noticed this behavior on Linux and Windows on earlier verisons as well.

Hi @Nathanielgranor

What I learned when using ‘ttl’, is that it is set according to the cycle of questions you want the bot to allow.
For example, in my case I had it set to 10 and when I got to question 11 the bot would restart.
What I did was increase the cycle number that I wanted the questions on the bot to last, it worked for me that way.