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

Image messages are not shown after refreshing the chat #987

Open
jbolter opened this issue Aug 1, 2024 · 7 comments
Open

Image messages are not shown after refreshing the chat #987

jbolter opened this issue Aug 1, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@jbolter
Copy link

jbolter commented Aug 1, 2024

Describe the bug
After generating an image the image appears in the chat correctly. However, once the page is refreshed the images do not appear. This is with SAVE_IMAGES set to true and I have confirmed the messages are in the database. I also noticed if I open the Chat Graph and select the last node in the graph then all the images suddenly appear in the chat.

To Reproduce
Steps to reproduce the behavior:

  1. Go to agna.chat
  2. Generate an image
  3. Confirm the image is in the chat
  4. Refresh the page
  5. See that the image is gone

Expected behavior
Expected behavior is that the images are rendered correctly on initial load (after a refresh).

Desktop (please complete the following information):

  • OS: MacOS
  • Chrome
  • v126.0.6478.183

Additional context
The message store it seems to lose the images in events.on(EVENTS.receiveMsgs, after this step const graph = toChatGraph(data.messages)
so when it's building the graph data.messages has all the messages but then when const fullPath = resolveChatPath(graph.tree, leaf) is run it does not have all the images in fullPath.

@jbolter
Copy link
Author

jbolter commented Aug 2, 2024

Well I started a new chat locally and i'm not reproducing this now so I will have to try and get more specific steps to recreate this issue.

@jbolter
Copy link
Author

jbolter commented Aug 2, 2024

If there is anything I can provide from the "broken" chat to help you debug let me know what that might be.

@jbolter
Copy link
Author

jbolter commented Aug 4, 2024

Gathered some more info.... the images were appearing in a chat where I had only generated images. As soon as I sent a chat message the images go away after a refresh. The chat graph seems to have split as soon as I sent a message with just text.

@sceuick sceuick added the bug Something isn't working label Aug 7, 2024
@sceuick
Copy link
Member

sceuick commented Aug 7, 2024

I'll fix this very soon.

@jbolter
Copy link
Author

jbolter commented Sep 27, 2024

Any timeline on when this might be fixed? Thanks!

@jbolter
Copy link
Author

jbolter commented Oct 15, 2024

Still hoping for this to be resolved 🤞

@jbolter
Copy link
Author

jbolter commented Jan 31, 2025

@sceuick is this still something you're going to look at? thanks!

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