dify - 💡(How to fix) Fix Multi-turn conversation history is being lost

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.14

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

On the left is the conversation history in Dify, where the most recent session appears empty. On the right is the actual status in my application, showing that the AI response was completed successfully. <img width="3099" height="2088" alt="Image" src="https://github.com/user-attachments/assets/39ecbd04-b344-4bb4-b8cc-861592cde54f" />

I am using the API integration method. This issue occurs within my own application, but it does not happen in the native Dify chat interface. I've noticed that when using the API, it seems to only store the initial interaction; all subsequent conversation history is lost, regardless of how many turns occur.

✔️ Expected Behavior

can get all round message in a chat session.

❌ Actual Behavior

All subsequent messages are lost in the history, even though that isn't actually the case. <img width="959" height="578" alt="Image" src="https://github.com/user-attachments/assets/80e3c010-3f86-439c-9385-2cf993b41106" />

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING