Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second Tweet from Agent Replies to User Instead of Initial Agent Tweet #2891

Closed
KennethAshley opened this issue Jan 28, 2025 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@KennethAshley
Copy link

Describe the bug
When the agent initiates an action (i.e. GENERATE_VIDEO), it sends two tweets:

  1. An initial tweet indicating the action has started.
  2. A second tweet with the payload once the action completes.

However, the second tweet (with the payload) replies directly to the user’s original tweet instead of replying to the agent’s initial tweet. This disrupts the expected reply chain and makes the interaction unclear.

To Reproduce

  1. Post a tweet to the agent requesting something (e.g., “generate a video of a butterfly”).
  2. Observe the agent’s initial tweet acknowledging the action initiation.
  3. Wait for the video generation process to complete.
  4. Observe the agent’s second tweet with the payload replying to the user’s original tweet instead of the agent’s initial tweet.

Expected behavior
The second tweet (containing the payload) should reply to the agent’s initial tweet, maintaining a logical and consistent reply chain.

Additional context

  • The issue may stem from how the framework handles inReplyToId or how the initial tweet ID is stored/passed to the second tweet.
  • A potential fix might involve explicitly capturing the agent’s initial tweet ID and ensuring it is passed as inReplyToId when sending the second tweet.

Let me know if you need further adjustments! 🚀

@KennethAshley KennethAshley added the bug Something isn't working label Jan 28, 2025
Copy link
Contributor

Hello @KennethAshley! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

@tcm390
Copy link
Collaborator

tcm390 commented Jan 29, 2025

fixed in #2966

@tcm390 tcm390 closed this as completed Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants