SkillDialog saving state while receiving multiple quick-succession Typing activities leads to failed storage writes #4360
Labels
Area: Skills
The issue is related to skills
bug
Indicates an unexpected problem or an unintended behavior.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Versions
SDK version 4.8.x to Latest
Describe the bug
SkillDialog
attempts to save conversation state when all activities are forwarded to the skill.botbuilder-js/libraries/botbuilder-dialogs/src/skillDialog.ts
Lines 264 to 267 in b1a27a1
This means that informational but not necessarily actionable activities such as Typing activities trigger state saves.
Human Handoff scenario
Typing activities should continue to be forwarded to skill, in case the skill acts as a middleman and routes typing activities to a human agent who is speaking with the end-user.
E.g.
Which leads to four attempts by the
Root bot
trying to save the state while trying to send four typing activities to theSkill bot
.These typing activities should be forwarded to the human agent, but there are no meaningful state changes in either bot whilst the customer is speaking to the agent.
Additionally, by saving state whilst sending Typing activities to storage can lead to 404s and/or 412s depending on the stoage provider.
Note: Loading state is still necessary as otherwise the root bot would not be able to send the Typing activity to the skill.
Additional context
Any changes needs to be ported to the other SDK languages as well.
The text was updated successfully, but these errors were encountered: