Rasa version:1.0.1
Rasa X version (if used & relevant):
Python version:
Operating system (windows, osx, ...):
Issue:
If I return ConversationPaused() from my custom_action's run method, the bot does not restart if I enter /restart but instead predicts action_listen as the next action. But If I /restart again, it works alright.

Any reasons? Thanks,
Error (including full traceback):
Command or request that led to error:
Content of configuration file (config.yml) (if relevant):
Content of domain file (domain.yml) (if relevant):
Thanks for raising this issue, @gausie will get back to you about it soon.
Hi @psds01,
Interesting, I checked the logs and seems like this is a bug with the MappingPolicy. We'll take a look unless you are willing to dig into it further
The logs below show
2019-07-30 10:20:16 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, 'restart'.
which is not correct behaviour
2019-07-30 10:20:06 DEBUG rasa.core.processor - Action 'action_hello_world' ended with events '['BotUttered(text: Hello World!, data: {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, metadata: {})', 'ConversationPaused()']'
2019-07-30 10:20:06 DEBUG rasa.core.agent - Deleted lock for conversation 'default' (unused)
Hello World!
Your input -> hi
2019-07-30 10:20:10 DEBUG rasa.core.agent - Created a new lock for conversation 'default'
2019-07-30 10:20:10 DEBUG rasa.core.tracker_store - Recreating tracker for id 'default'
2019-07-30 10:20:10 DEBUG rasa.core.processor - Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.9697540402412415}' and entities '[]'
2019-07-30 10:20:10 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 6 events
2019-07-30 10:20:10 DEBUG rasa.core.agent - Deleted lock for conversation 'default' (unused)
Your input -> hi
2019-07-30 10:20:12 DEBUG rasa.core.agent - Created a new lock for conversation 'default'
2019-07-30 10:20:12 DEBUG rasa.core.tracker_store - Recreating tracker for id 'default'
2019-07-30 10:20:12 DEBUG rasa.core.processor - Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.9697540402412415}' and entities '[]'
2019-07-30 10:20:12 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 7 events
2019-07-30 10:20:12 DEBUG rasa.core.agent - Deleted lock for conversation 'default' (unused)
Your input -> hi
2019-07-30 10:20:13 DEBUG rasa.core.agent - Created a new lock for conversation 'default'
2019-07-30 10:20:13 DEBUG rasa.core.tracker_store - Recreating tracker for id 'default'
2019-07-30 10:20:13 DEBUG rasa.core.processor - Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.9697540402412415}' and entities '[]'
2019-07-30 10:20:13 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 8 events
2019-07-30 10:20:13 DEBUG rasa.core.agent - Deleted lock for conversation 'default' (unused)
Your input -> /restart
2019-07-30 10:20:16 DEBUG rasa.core.agent - Created a new lock for conversation 'default'
2019-07-30 10:20:16 DEBUG rasa.core.tracker_store - Recreating tracker for id 'default'
2019-07-30 10:20:16 DEBUG rasa.core.processor - Received user message '/restart' with intent '{'name': 'restart', 'confidence': 1.0}' and entities '[]'
2019-07-30 10:20:16 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 9 events
2019-07-30 10:20:16 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {'intent_gimme': 1.0, 'prev_action_listen': 1.0}, {'prev_action_hello_world': 1.0, 'intent_restart': 1.0}]
2019-07-30 10:20:16 DEBUG rasa.core.policies.memoization - There is no memorised next action
2019-07-30 10:20:16 DEBUG rasa.core.featurizers - Feature 'intent_restart' (value: '1.0') could not be found in feature map. Make sure you added all intents and entities to the domain
2019-07-30 10:20:16 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, 'restart'.
2019-07-30 10:20:16 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_KerasPolicy
2019-07-30 10:20:16 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 0.92.
2019-07-30 10:20:16 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'
2019-07-30 10:20:16 DEBUG rasa.core.agent - Deleted lock for conversation 'default' (unused)
Your input -> /restart
2019-07-30 10:21:51 DEBUG rasa.core.agent - Created a new lock for conversation 'default'
2019-07-30 10:21:51 DEBUG rasa.core.tracker_store - Recreating tracker for id 'default'
2019-07-30 10:21:51 DEBUG rasa.core.processor - Received user message '/restart' with intent '{'name': 'restart', 'confidence': 1.0}' and entities '[]'
2019-07-30 10:21:51 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 11 events
2019-07-30 10:21:51 DEBUG rasa.core.policies.memoization - Current tracker state [None, {}, {'intent_gimme': 1.0, 'prev_action_listen': 1.0}, {'prev_action_hello_world': 1.0, 'intent_restart': 1.0}, {'prev_action_listen': 1.0, 'intent_restart': 1.0}]
2019-07-30 10:21:51 DEBUG rasa.core.policies.memoization - There is no memorised next action
2019-07-30 10:21:51 DEBUG rasa.core.featurizers - Feature 'intent_restart' (value: '1.0') could not be found in feature map. Make sure you added all intents and entities to the domain
2019-07-30 10:21:51 DEBUG rasa.core.featurizers - Feature 'intent_restart' (value: '1.0') could not be found in feature map. Make sure you added all intents and entities to the domain
2019-07-30 10:21:51 DEBUG rasa.core.policies.mapping_policy - The predicted intent 'restart' is mapped to action 'None' in the domain.
2019-07-30 10:21:51 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_MappingPolicy
2019-07-30 10:21:51 DEBUG rasa.core.processor - Predicted next action 'action_restart' with confidence 1.00.
2019-07-30 10:21:51 DEBUG rasa.core.processor - Action 'action_restart' ended with events '['Restarted()']'
2019-07-30 10:21:51 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00.
2019-07-30 10:21:51 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'
2019-07-30 10:21:51 DEBUG rasa.core.agent - Deleted lock for conversation 'default' (unused)
I will take it up.
Thanks @MetcalfeTom for the source of error.
@MetcalfeTom Please check out the above PR.
I am also facing this bug during Two-stage fallback. After the user denies the second time, the fallback action pauses the conversation and asks for restart by showing the restart button. But rasa doesn't restart and then no message passes through.
2019-08-22 11:27:09 DEBUG rasa.core.policies.form_policy - There is no active form
2019-08-22 11:27:09 DEBUG rasa.core.policies.two_stage_fallback - User 'T0NyStArk' denied suggested intents.
2019-08-22 11:27:09 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_4_TwoStageFallbackPolicy
2019-08-22 11:27:09 DEBUG rasa.core.processor - Predicted next action 'action_default_fallback' with confidence 1.00.
2019-08-22 11:27:09 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_default_fallback'.
2019-08-22 11:27:10 DEBUG rasa.core.processor - Action 'action_default_fallback' ended with events '['BotUttered(text: Click the button below if you want to star
t over., data: {"elements": null, "quick_replies": null, "buttons": [{"payload": "/restart", "title": "Restart"}], "attachment": null, "image": null, "custom": null}
, metadata: {})', 'SlotSet(key: feedback_value, value: negative)', 'ConversationPaused()']'
2019-08-22 11:27:10 DEBUG rasa.core.processor - Current slot values:
account_id: None
account_type: None
age: None
cust_name: None
employment_status: None
feedback_value: negative
offer: None
requested_slot: None
2019-08-22 11:27:10 DEBUG rasa.core.agent - Deleted lock for conversation 'T0NyStArk' (unused)
2019-08-22 11:27:12 DEBUG rasa.core.agent - Created a new lock for conversation 'T0NyStArk'
2019-08-22 11:27:12 DEBUG rasa.core.tracker_store - Recreating tracker for id 'T0NyStArk'
2019-08-22 11:27:12 DEBUG rasa.core.processor - Received user message '/restart' with intent '{'name': 'restart', 'confidence': 1.0}' and entities '[]'
2019-08-22 11:27:12 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 23 events
2019-08-22 11:27:12 DEBUG rasa.core.policies.memoization - Current tracker state [{'intent_out_of_scope': 1.0, 'prev_action_default_ask_rephrase': 1.0}, {'intent
_affirm': 1.0, 'prev_action_listen': 1.0}, {'intent_affirm': 1.0, 'prev_action_default_ask_affirmation': 1.0}, {'prev_action_listen': 1.0, 'intent_out_of_scope': 1.0
}, {'slot_feedback_value_0': 1.0, 'prev_action_default_fallback': 1.0, 'intent_restart': 1.0}]
2019-08-22 11:27:12 DEBUG rasa.core.policies.memoization - There is no memorised next action
2019-08-22 11:27:12 DEBUG rasa.core.featurizers - Feature 'intent_restart' (value: '1.0') could not be found in feature map. Make sure you added all intents and
entities to the domain
2019-08-22 11:27:12 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, 'restart'.
2019-08-22 11:27:12 DEBUG rasa.core.policies.form_policy - There is no active form
2019-08-22 11:27:12 DEBUG rasa.core.policies.two_stage_fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3).
2019-08-22 11:27:12 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_KerasPolicy
2019-08-22 11:27:12 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00.
2019-08-22 11:27:12 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'
2019-08-22 11:27:12 DEBUG rasa.core.agent - Deleted lock for conversation 'T0NyStArk' (unused)
2019-08-22 11:29:12 DEBUG rasa.core.agent - Created a new lock for conversation 'T0NyStArk'
2019-08-22 11:29:12 DEBUG rasa.core.tracker_store - Recreating tracker for id 'T0NyStArk'
2019-08-22 11:29:16 DEBUG spellchecker_comp - Words - ['hi']
2019-08-22 11:29:16 DEBUG spellchecker_comp - Corrected - hi : Length - 2
2019-08-22 11:29:16 DEBUG rasa.core.processor - Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.8752979040145874}' and entities '[]'
2019-08-22 11:29:16 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 25 events
2019-08-22 11:29:16 DEBUG rasa.core.agent - Deleted lock for conversation 'T0NyStArk' (unused)