Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): change default timeout #11562

Merged
merged 2 commits into from
Mar 1, 2022
Merged

fix(core): change default timeout #11562

merged 2 commits into from
Mar 1, 2022

Conversation

allardy
Copy link
Member

@allardy allardy commented Feb 25, 2022

By default, the context timeout was 2 minutes. Meaning, if you started a conversation with the bot, then waited 3 minutes before answering it (choosing which button to click), it would start again at the beginning, forgetting your position.

From what I saw, everybody seems to change this value to something higher, so why shouldn't we put it higher by default?

@@ -22,7 +22,7 @@ export interface DialogConfig {
* Interval before a session's context expires.
* e.g. when the conversation is stale and has not reached the END of the flow.
* This will reset the position of the user in the flow.
* @default 2m
* @default 25m
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bot config timeoutInterval (default to 5min) has precedence over the one on the Botpress config. See: https://github.com/botpress/botpress/blob/master/packages/bp/src/core/dialog/sessions/expiry.ts#L20

This means that changing this value will have no real effect unless you remove the default timeout from your bot configs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, updated that one also :)

@samuelmasse samuelmasse merged commit 7d7f84f into master Mar 1, 2022
@samuelmasse samuelmasse deleted the ya-timeout branch March 1, 2022 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants