-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
Describe the bug
File attachments (message.elements/cl.Message.elements) disappear when resuming thread, even though they can be accessed correctly during live chat sessions. The attachment data are missing from messages after page refresh or thread resumption. message.elements became empty list but file is still showing on the frontend.
To Reproduce
Steps to reproduce the behavior:
- Start a new Chainlit chat session
- Upload a file attachment to a message
- Send the message (message.elements should now have the data)
- Refresh the page OR navigate to thread history and resume the thread
- message.elements is now an empty list in the backend code
Expected behavior
File attachment data should still be accessible when resuming thread. message.elements should contain the attachment data
Screenshots
N/A
Desktop (please complete the following information):
- OS: Linux/Windows/macOS (affects all)
- Browser: Chrome, Firefox, Safari (affects all)
- Chainlit Version: 2.9.4+ (Probably older version too)
Additional context
Some what similar to #2584 and #2698. But I'm using the official data layer
Reactions are currently unavailable