eliza
eliza copied to clipboard
Fix farcaster client process action issue
Relates to:
Fix the bug where Farcaster client does NOT fire any actions
Risks
Low Only fixes action handling in existing functionality No structural changes to the codebase No database schema changes
Background
What does this PR do?
- Fixes the bug where Farcaster client does not fire any actions
- Adds cast hash to message memory for later use in action handler
What kind of change is this?
Bug fixes (non-breaking change which fixes an issue)
Why are we doing this? Any context or related work?
Currently, when the Farcaster client generates responses that should trigger actions (like following a user or reacting to a cast), these actions are not being executed. This happens because:
- The action information is being lost during the response chain
- The cast hash, which is necessary for some actions, is not properly stored in the message memory
- The action handlers don't receive the complete context they need
This bug prevents important bot functionalities from working, such as:
- Automatic following of users who interact with the bot
- Reacting to casts when appropriate
- Any custom actions defined in the bot's behavior
Documentation changes needed?
My changes do not require a change to the project documentation.
Testing
Where should a reviewer start?
- Review the changes in packages/client-farcaster/src/interactions.ts
- Focus on the handleCast method where action handling is fixed
Detailed testing steps
- Set up a test Farcaster bot
- Send a mention that should trigger an action
- Verify that:
- The bot responds appropriately
- Actions are properly fired
- Cast hash is correctly stored in message memory
- Action handlers receive the necessary context
Discord username
sin_bufan