fix: improve Addie thread conversation flow#652
Merged
Conversation
Two improvements to Addie's conversational behavior in Slack threads: 1. Auto-respond in active threads: When a user replies to a thread where Addie has already participated, Addie now responds automatically without requiring an explicit @mention. This creates natural conversation flow - users can say "Yes please" to Addie's follow-up questions without needing to @mention her again. 2. Conversation history for @mentions: Addie now remembers what she said in previous @mention interactions. Previously, she only had access to other users' messages in the thread (not her own), which caused hallucinations where she would confabulate what she had previously said/done. Implementation details: - Added checkAddieThreadParticipation() to detect Addie's presence in threads - Added handleActiveThreadReply() to handle implicit mentions in active threads - Added conversation history fetching to handleAppMention() for Claude context - Optimized to reuse thread messages from participation check (single API call) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two improvements to Addie's conversational behavior in Slack threads:
Auto-respond in active threads: When a user replies to a thread where Addie has already participated, Addie now responds automatically without requiring an explicit @mention. This creates natural conversation flow - users can say "Yes please" to Addie's follow-up questions without needing to @mention her again.
Conversation history for @mentions: Addie now remembers what she said in previous @mention interactions. Previously, she only had access to other users' messages in the thread (not her own), which caused hallucinations where she would confabulate what she had previously said/done.
Implementation Details
checkAddieThreadParticipation()to detect Addie's presence in threads (returns both participation status and messages to avoid duplicate API calls)handleActiveThreadReply()to handle implicit mentions in active threadshandleAppMention()for Claude contexthandleActiveThreadReply()as wellTest plan
🤖 Generated with Claude Code