diff --git a/server/hooks.go b/server/hooks.go index 5ce274d..33349e6 100644 --- a/server/hooks.go +++ b/server/hooks.go @@ -162,7 +162,9 @@ func (p *Plugin) MessageHasBeenPosted(c *plugin.Context, post *model.Post) { } // Wake or refresh the engagement session. + // Fresh @-mention resets conversation history so old context doesn't bleed. if mentioned { + _ = p.conversationStore.Reset(post.UserId, post.ChannelId) p.engagementEngine.Wake(post.UserId, post.ChannelId) }