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

Message ID Mismatch #663

Open
Scott-Hickmann opened this issue Dec 29, 2024 · 2 comments
Open

Message ID Mismatch #663

Scott-Hickmann opened this issue Dec 29, 2024 · 2 comments

Comments

@Scott-Hickmann
Copy link

The message returned from useChat has a message ID of the form x7hnCHCUxY15RGl4, yet in the database the message is created with a uuid returned from generateUUID of the form e42ba6a8-6dc0-4614-a14f-9297e7748987. This results in upvoting/downvoting failing when upvoting/downvoting immediately after sending a message, since the message ID used in the request is the wrong x7hnCHCUxY15RGl4 that is not stored in the database.

@wuyasong
Copy link

wuyasong commented Jan 2, 2025

I have the same problem here. How can I solve it?

@jeremyphilemon
Copy link
Collaborator

@Scott-Hickmann @wuyasong thanks for reporting!

I just refactored the ID generation behavior in #736 to improve id synchronization between the client and server. This should eliminate the brief stale ID issue on the client side that was resulting in votes failing to succeed.

Could you test it again and confirm if it's working better now?

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

No branches or pull requests

3 participants