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

fix: Duplicate twitter posts. #1329

Conversation

ChristopherTrimboli
Copy link
Contributor

Relates to:

#1284

Risks

LOW - could miss a post, or post less, but seems posting once correctly now on server boot.

Background

What does this PR do?

This PR fixes duplicate Twitter posts on Eliza server boot.

I think this was a mistake from a revert last week, can see git blame:

image

generateNewTweetLoop() is being ran twice with no conditionals on post.start()

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?

Twitter agents should not duplicate post on boot.

Documentation changes needed?

My changes do not require a change to the project documentation.

Testing

Before boot, see duplicates, after changes, only 1 post:

Screenshot From 2024-12-21 03-19-29

Where should a reviewer start?

Try boot twitter agent with fresh delay, note no duplicate posts.

Detailed testing steps

Start with fresh twitter account, no delay, boot server, look at profile timeline for duplicate posts.

Discord username

cjft

@ChristopherTrimboli
Copy link
Contributor Author

Integration test failing due to non PR issue in CI:

Run echo "Skipping integration tests due to missing required API keys"
Skipping integration tests due to missing required API keys

Copy link
Contributor

@oxSaturn oxSaturn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@ChristopherTrimboli
Copy link
Contributor Author

yoinked in: #1339 :')

@shakkernerd shakkernerd deleted the branch elizaOS:develop December 22, 2024 07:02
@odilitime odilitime reopened this Dec 22, 2024
@monilpat
Copy link
Collaborator

Closing as contained in another PR

@monilpat monilpat closed this Dec 24, 2024
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.

6 participants