You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
At Yotta Labs, we are transforming global computing into a high-performance, decentralized AI platform. As part of this mission, I integrated the AI Agent functionality and selected the Eliza framework for managing agent-related tasks.
While configuring the Twitter client and successfully logging into my account, I noticed an issue in the runtime logs: the message ["◎ Next tweet scheduled in 128 minutes"] appeared twice. This indicates that generateNewTweetLoop was called twice, resulting in two independent tweet scheduling loops being initialized.
The issue occurs because the start method in /packages/client-twitter/src/post.ts calls generateNewTweetLoop twice—once at line 174 and again at line 190—without any conditional checks to prevent multiple timers.
To Reproduce
Add the following code to the relevant character.json file:
"clients": ["twitter"]
Configure the Twitter-related parameters in the .env file, and set POST_IMMEDIATELY=true to enable immediate tweet posting.
Start the model service.
Check Twitter, and you will find that two tweets are posted simultaneously. Additionally, the logs show the message Next tweet scheduled in xxx minutes printed twice.
Expected behavior
The generateNewTweetLoop method should only be invoked once during the start method, ensuring that only a single tweet scheduling loop is active. This would prevent duplicate logs and redundant scheduling timers.
Screenshots
Additional context
File: /packages/client-twitter/src/post.ts
Method: start
Lines: 174 and 190
Observed Behavior: generateNewTweetLoop is called twice without a conditional check, causing two scheduling loops to be initialized.
Move second generateNewTweetLoop() inside the if (enableActionProcessing)
The text was updated successfully, but these errors were encountered:
- Resolved an issue where `generateNewTweetLoop` was called twice in the `start` method of /packages/client-twitter/src/post.ts.\n- The method was invoked at line 174 and line 190 without any conditional checks, leading to two independent tweet scheduling loops being created.\n- Removed one of the redundant `generateNewTweetLoop` calls to ensure only a single scheduling loop is initialized.\n\nFixes elizaOS#1395
Describe the bug
At
Yotta Labs
, we are transforming global computing into a high-performance, decentralized AI platform. As part of this mission, I integrated the AI Agent functionality and selected the Eliza framework for managing agent-related tasks.While configuring the Twitter client and successfully logging into my account, I noticed an issue in the runtime logs: the message
["◎ Next tweet scheduled in 128 minutes"]
appeared twice. This indicates thatgenerateNewTweetLoop
was called twice, resulting in two independent tweet scheduling loops being initialized.The issue occurs because the
start
method in/packages/client-twitter/src/post.ts
callsgenerateNewTweetLoop
twice—once at line 174 and again at line 190—without any conditional checks to prevent multiple timers.To Reproduce
Add the following code to the relevant
character.json
file:Configure the Twitter-related parameters in the
.env
file, and setPOST_IMMEDIATELY=true
to enable immediate tweet posting.Start the model service.
Check Twitter, and you will find that two tweets are posted simultaneously. Additionally, the logs show the message
Next tweet scheduled in xxx minutes
printed twice.Expected behavior
The generateNewTweetLoop method should only be invoked once during the start method, ensuring that only a single tweet scheduling loop is active. This would prevent duplicate logs and redundant scheduling timers.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: