I am using the llm chat component in my project. Iv noticed something that might be a bug. When clicking on the clear history button in the UI. The history is deleted on the client side. However when I refresh the page, the chat history returns to the chat interface. This happens even when calling the clearHistory method in a script. Does this function as expected? Or is this possibly a bug?
Hello @matt.em!
Great find, let me double check with our AI team and see if this is expected behavior.
It seems that the component is fetching the saved chat data on refresh from another location as the component's state is emptied on click of 'clear history'.
My guess is that some users do want to have chat messages to be pulled up if an accidental browser refresh occurs or if there are networking issues.
But there are likely other users who want a chat to be completely cleared and forgotten about.
I will look into making sure users have control over how the component handles page refreshes and potentially add a toggle for refresh vs no refresh history fetching!
1 Like
Thank you!
1 Like