Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset the embedded chat #13023

Open
4 of 5 tasks
DarisCappelletti opened this issue Jan 24, 2025 · 0 comments
Open
4 of 5 tasks

Reset the embedded chat #13023

DarisCappelletti opened this issue Jan 24, 2025 · 0 comments
Labels
💪 enhancement New feature or request good first issue Good first issue for newcomers

Comments

@DarisCappelletti
Copy link

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • 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.

Dify version

v0.15.1

Cloud or Self Hosted

Self Hosted (Source), Self Hosted (Docker)

Steps to reproduce

  • Set up the embedding through a script on an HTML page.
  • In the embedded chat, the chat history is currently reloaded when the page is refreshed by fetching values from the localStorage.

✔️ Expected Behavior

Since it is an iframe, it is not possible to clear the localStorage using JavaScript to perform a reset. At the moment, I have configured a chat where an ID is prefilled, but if the user accesses a different page, I should be able to reset the chat to avoid having an incorrect ID, for example, through a parameter configurable via script.

❌ Actual Behavior

Currently, it is not possible to pass reset the chat. Only with a manual click of the user on the button reset.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
@dosubot dosubot bot added the 💪 enhancement New feature or request label Jan 24, 2025
@crazywoola crazywoola added the good first issue Good first issue for newcomers label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request good first issue Good first issue for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants