botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
76 stars 88 forks source link

Variable in state temp don't be sent anymore on last node #1708

Closed LL-actemedia closed 1 year ago

LL-actemedia commented 1 year ago

Describe the bug I'm trying to upgrade botpress server from v12.22.2. I have a bot which store variable in state/temp on several nodes of the bot. At the end, we get all these variables for avanced usage. (We access to the bot via API) In all version i tested (12.23.0, 12.26.0, 1.26.12, 12.29.1, 12.30.6), i can see with the studio debugger (for lastest version) that the variable are correctly set all the way in the bot. But when arriving on the last one, all variable are deleted.

To Reproduce Make a bot with node which store variable. (bot_test_1671111461712.zip) Navigate in it. The state/temp contains all variables.
Go to the end on the tree and the state/temp is empty.

Expected behavior The state/temp contains all variable even at the end so we can use them like in version 12.22.2.

Screenshots State after the first response
image
State at the end of the bot
image

Environment (please complete the following information):

davidvitora commented 1 year ago

Temporary variables will be cleared on conversation end; change the variable type to session if you want to persist