langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
51.81k stars 7.51k forks source link

feat: regenerate history switch navigation #8749

Closed xuzuodong closed 3 weeks ago

xuzuodong commented 1 month ago

Checklist:

[!IMPORTANT]
Please review the checklist below before submitting your pull request.

Description

This PR is based on #7661, which added the regeneration feature to the Chat, Agent, and Chatflow Dify applications.

This PR further refines the implementation by enabling a navigation switch within the chat bubble to review all generated messages.

This PR only implemented navigating in Log detail and Chatflow run history detail views.

  1. Log detail

https://github.com/user-attachments/assets/6f753a1d-5698-47a9-ada2-7970ceca02b6

  1. Chatflow run history detail

https://github.com/user-attachments/assets/01d57376-324c-45cd-a72b-ee151827d860

Fixes https://github.com/langgenius/dify/issues/8910

Type of Change

Testing Instructions

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration