Skip to content
New issue

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

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

Already on GitHub? # to your account

double backslash when posting to X #1206

Closed
tekspirit opened this issue Dec 18, 2024 · 3 comments
Closed

double backslash when posting to X #1206

tekspirit opened this issue Dec 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@tekspirit
Copy link

Describe the bug
Eliza is posting an '\n\n' to X instead of two carriage returns. This is using CLAUDE_VERTEX.

It appears every post has this symptom.
To Reproduce
I run on a mac, so compiled eliza with settings for mac. Example: https://x.com/waggyhappytail/status/1869352624656716210

I run with pnpm tsx agent/src/index.ts
Expected behavior
It should post carriage returns.

Screenshots
https://imgur.com/a/BFJ2RlH

Additional context
If I exit eliza and restart, it doesn't always reproduce the issue. The only filed edited is the character file.

@tekspirit tekspirit added the bug Something isn't working label Dec 18, 2024
@usama-saeed831
Copy link

usama-saeed831 commented Dec 18, 2024

@tekspirit I fix this by adding following line in
pacakages -> client-twitter -> src -> post.js
in "generateNewTweet()" function

after
cleanedContent = removeQuotes(content);

cleanedContent = cleanedContent.replace(/\\n/g, '\n');

@owlcode
Copy link
Contributor

owlcode commented Dec 18, 2024

I think .replaceAll is more appropriate. I fixed it here #1141. I guess it waits for a release.

@AIFlowML
Copy link
Collaborator

AIFlowML commented Jan 6, 2025

The issue was solved by @owlcode in 1141 already merged.
I close this issue now.

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

No branches or pull requests

4 participants