Skip to content

fix: improve Addie thread conversation flow#652

Merged
bokelley merged 1 commit into
mainfrom
bokelley/addie-thread-context
Jan 6, 2026
Merged

fix: improve Addie thread conversation flow#652
bokelley merged 1 commit into
mainfrom
bokelley/addie-thread-context

Conversation

@bokelley

@bokelley bokelley commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

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

  • Added checkAddieThreadParticipation() to detect Addie's presence in threads (returns both participation status and messages to avoid duplicate API calls)
  • Added handleActiveThreadReply() to handle implicit mentions in active threads
  • Added conversation history fetching to handleAppMention() for Claude context
  • Added conversation history fetching to handleActiveThreadReply() as well

Test plan

  • Test replying to a thread where Addie has already responded - should auto-respond without @mention
  • Test replying to a thread where Addie has NOT responded - should NOT auto-respond (goes through router)
  • Test @mention in a thread - Addie should remember her previous responses accurately
  • Build and unit tests pass

🤖 Generated with Claude Code

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>
@bokelley bokelley merged commit 5bff2ee into main Jan 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant