feat: emoji reaction as immediate feedback for @bot in threads - #145
Merged
Conversation
When a user @bot in a thread, quick-ack is skipped, leaving no immediate visual feedback. Now the bot adds an "OnIt" emoji reaction to the message as soon as it's received, then removes it in the finally block after the formal reply is sent (or on error). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tests for the emoji reaction feature: add reaction in thread, remove after reply, cleanup on error, graceful handling of API failures. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 58s —— View job PR Review: Emoji Reaction as Immediate Feedback
Review Summary✅ Approved — Clean, well-structured change that follows existing codebase patterns. Analysis
Overall AssessmentThe feature is minimal, well-scoped, and follows established patterns. The |
lishuceo
added a commit
that referenced
this pull request
Apr 8, 2026
* feat: add emoji reaction as immediate feedback for @bot in threads When a user @bot in a thread, quick-ack is skipped, leaving no immediate visual feedback. Now the bot adds an "OnIt" emoji reaction to the message as soon as it's received, then removes it in the finally block after the formal reply is sent (or on error). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * test: add thread reaction tests Tests for the emoji reaction feature: add reaction in thread, remove after reply, cleanup on error, graceful handling of API failures. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <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
finallyblock after the formal reply is sent (or on error)addReaction()andremoveReaction()methods toFeishuClientwrapping the Feishuim.messageReactionAPITest plan
src/__tests__/thread-reaction.test.tswith 7 test cases covering:eventThreadIdis presentaddReactionfails or throws🤖 Generated with Claude Code