dify icon indicating copy to clipboard operation
dify copied to clipboard

Issue with LocalStorage Saving Message History in Dify's Iframe

Open PatrickkZhao opened this issue 1 year ago • 1 comments

Self Checks

  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [X] Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I am using Dify's embedding-in-websites feature, but I have noticed that it defaults to saving message history in localStorage. This causes the iframe URL I constructed (e.g., https://dify.xxx.com/chatbot/xxxxx?query=xxx) to not refresh when I input a different query value. I would like to know how to reset the conversation every time I exit the iframe.

Yes, this request is directly related to the challenge I am currently facing. Since the message history is saved in localStorage, I am unable to effectively switch between different queries, which affects the user experience.

2. Additional context or comments

I would like to be able to clear the message history each time I exit the iframe so that I can start a new conversation without being influenced by previous interactions.

3. Can you help us with this feature?

  • [ ] I am interested in contributing to this feature.

PatrickkZhao avatar Nov 12 '24 10:11 PatrickkZhao

Hi, @PatrickkZhao. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You reported an issue with Dify's iframe feature where message history is stored in localStorage.
  • This storage behavior prevents the iframe URL from refreshing with new query values.
  • The issue affects the ability to start a new conversation each time the iframe is exited.
  • You are seeking a solution to clear the message history to improve user experience.
  • There have been no comments or developments on this issue yet.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Dec 13 '24 16:12 dosubot[bot]