Test stories returned by conversations/{convo_id}/story are blank when a session ends with a Restart event #11151
Labels
area:rasa-oss 🎡
Anything related to the open source Rasa framework
type:bug 🐛
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Rasa Open Source version
3.1.0
What happened?
When fetching test stories for all sessions from the
conversations/{convo_id}/story
endpoint, if the user had typed/restart
and thus triggered aRestarted
event, the story for that session will be blank.I expected that each session would reflect the conversation up until the point of restart.
This happens because stories are constructed from
applied_events
, and applied events are automatically reset to an empty list when aRestarted
event is encountered here.One way the issue could be fixed is by changing how trackers are split into sessions in the
get_trackers_for_conversation_sessions
function, for example by movingaction_restart
andRestarted
events to the beginning of a session instead of the end of the last session.Command / Request
Relevant log output
version: "3.1" stories: - story: test, story 1 steps: [] - story: test, story 2 steps: [] - story: test, story 3 steps: [] - story: test, story 4 steps: [] - story: test, story 5 steps: []
The text was updated successfully, but these errors were encountered: