chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Chat Settings Button disappears when Resuming Chat

Open hadarsharon opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug When ChatSettings are defined in the application, they appear fine and usable upon a chat/thread instantiation, and are active and visible for the duration of the chat.

However when using Data Persistence (in my case I am using SQLAlchemyDataLayer), the chat settings button is not visible anymore once the chat is resumed (Resume Chat button).

This is a limitation that impairs the user experience when the thread is not the initial/active thread, and while it might be a feature rather than a bug, I think the settings should always be accessible.

FWIW, the settings are persisted from their last state (not sure if last state for that thread or last state in general), which might be even more confusing for certain use cases.

To Reproduce Steps to reproduce the behavior:

  1. Enable Data Persistence in your Chainlit application
  2. Define ChatSettings for your application to enable the settings button in the UI
  3. Create a new chat and send a message - note that the settings option should be available on the left side of the input bar
  4. Create another chat, send another message if you will - the settings option should just as well be available like before
  5. Go back to the chat from step 2 - now the chat settings button should not be visible, and you basically have no access to settings anymore in this chat.

Expected behavior The Chat Settings button should be visible and accessible in the input bar at all times.

Screenshots Fresh start without chat history (note settings button is visible to the left):

image

After sending a message in the same thread:

image

After moving to a new chat and returning to the same thread:

image

Clicking Resume Chat - then the chat settings button is no longer there:

image

¯_(ツ)_/¯

Desktop (please complete the following information):

  • OS: iOS
  • Browser Chrome
  • Version Chainlit 1.2.0

hadarsharon avatar Oct 02 '24 12:10 hadarsharon