feat: add react_remove tool for removing emoji reactions#496
Open
oskarszoon wants to merge 1 commit intospacedriveapp:mainfrom
Open
feat: add react_remove tool for removing emoji reactions#496oskarszoon wants to merge 1 commit intospacedriveapp:mainfrom
oskarszoon wants to merge 1 commit intospacedriveapp:mainfrom
Conversation
Mirrors the existing react tool but sends RemoveReaction, allowing agents to clean up acknowledgment emojis (e.g. 👀) after responding. Wired into channel tool lifecycle alongside react.
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughA new "react_remove" tool has been added to enable removal of emoji reactions from messages. The implementation includes a new tool module, Jinja template prompt file, tool registration in the framework, and corresponding prompt lookup entry. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
react_removechannel tool that sendsOutboundResponse::RemoveReaction, allowing agents to remove emoji reactions they previously added to messagesreacttool structure — same lifecycle (added/removed with other channel tools), same parameter shape (single emoji)Motivation
The
RemoveReactionvariant already exists onOutboundResponseand is handled by the messaging adapters (Slack fully implements it viareactions_remove, others gracefully no-op). But there was no tool exposing it to agents — they could add reactions but never remove them.Changes
src/tools/react_remove.rsReactToolbut sendsRemoveReactionprompts/en/tools/react_remove_description.md.j2src/tools.rsadd_channel_tools()/remove_channel_tools()src/prompts/text.rstools/react_removeAdapter support
reactions_removeAPI)Adapter implementations for Discord/Telegram/Signal are out of scope for this PR — the plumbing is in place for when those platforms add support or workarounds are found.
Test plan
cargo fmt --allpassesreact_remove.rs