ai-chatbot
ai-chatbot copied to clipboard
Sidebar chat title and New chat button does not work when UI is generated as a response
When creating a new chat that generates a UI, the chat title does not auto-generate and update on the sidebar but will appear after manual page refresh. Additionally, after the assistant responds with the UI, clicking "New Chat" does not move the page to the root route even though the route changes from the address bar.
Steps to Reproduce:
- Clone repo, add env config and run as local
- Create a new chat that generates a UI
- Notice the sidebar will not update with new chat title
- Notice when "New Chat" is clicked, the page won't move
- However, if the assistant streams text response, the sidebar updates with new chat title and "New chat" button works
See attached video:
https://github.com/user-attachments/assets/d85e4b26-6efd-4f04-80e7-cd7908bffa2e
#404 I think you update the code follow this can solve the problem it works for me it is about saveChat maybe later than the ui update