diff --git a/plugins/role/role.py b/plugins/role/role.py index 7c7b1067b..8890a6299 100644 --- a/plugins/role/role.py +++ b/plugins/role/role.py @@ -180,6 +180,7 @@ def on_handle_context(self, e_context: EventContext): e_context["reply"] = reply e_context.action = EventAction.BREAK_PASS else: + e_context["context"]["generate_breaked_by"] = EventAction.BREAK prompt = self.roleplays[sessionid].action(content) e_context["context"].type = ContextType.TEXT e_context["context"].content = prompt