#207 — [Bug]: If you save a widget edit you loose the chat history

Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned

Created: 2024-11-22 · Updated: 2025-03-24

Description

Steps to reproduce

To reproduce:

  1. Create a plot and add it to a dashboard
  2. Click on the plot title on the dashboard to get to the widget chat page
  3. Start a conversation and ask for a modification of the plot (for example turn it into a bar chart if it is a line chart)
  4. Save the changes and go back to the dashboard
  5. Open de widget again

What was the expected behavior?

I expected the previous conversation to remain but it was last and a new one started from scratch.

Screenshots

Before saving: image After saving: image

Investigation details

When user replaces one dashboard widget with another widget then “serving” LLM Chat is removed together with initial widget. And new widget is being cloned from LLM Chat into dashboard with a new empty “serving” LLM Chat. Logic of updating dashboard widgets is not aware about “replace” actions in UI, for back-end it is just a new set of widgets to associate. I.e. current “clone widget and create new serving LLM chat” is a valid behavior for a new (from user prospective) widgets. So to support new behavior (keep serving LLM Chat for a new “widget to clone”) need to provide information that widge

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets