Opening historic versions corrupts current draft #22257

Open
opened 2026-02-21 20:16:19 -05:00 by yindo · 1 comment
Owner

Originally created by @DavideDelbianco on GitHub (Feb 19, 2026).

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.12.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  • Create a workflow
  • Publish it
  • Modify the workflow
  • Open the history version picker and click a previous version

✔️ Expected Behavior

should show the historic version without setting it as the current draft

Actual Behavior

Everything that was in the draft version is overridden the moment the historic version is loaded

Originally created by @DavideDelbianco on GitHub (Feb 19, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.12.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce - Create a workflow - Publish it - Modify the workflow - Open the history version picker and click a previous version ### ✔️ Expected Behavior should show the historic version without setting it as the current draft ### ❌ Actual Behavior Everything that was in the draft version is overridden the moment the historic version is loaded
yindo added the 🐞 bug label 2026-02-21 20:16:19 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 19, 2026):

This is a known bug that was fixed in PR #30296, merged on December 30, 2025. Since you're on version 1.12.1, you should have this fix if you're on a build from after that date.

The root cause was in the version history panel component—it was calling handleRestoreFromPublishedWorkflow() for all versions, including drafts, which overwrote the current draft. The fix added conditional logic to distinguish between draft and published versions.

Several related issues were reported:

  • #26107: Draft version uses wrong DSL after viewing history
  • #29938: Changes in historic versions affected current live version

Recommendation: Check if your Docker image is from a build after December 30, 2025. If you're on an older build, upgrading to the latest should resolve this issue.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 19, 2026): <!-- Answer --> This is a known bug that was **fixed in [PR #30296](https://github.com/langgenius/dify/pull/30296)**, merged on December 30, 2025. Since you're on version 1.12.1, you should have this fix if you're on a build from after that date. The root cause was in the version history panel component—it was calling `handleRestoreFromPublishedWorkflow()` for all versions, including drafts, which overwrote the current draft. The fix added conditional logic to distinguish between draft and published versions. Several related issues were reported: - [#26107](https://github.com/langgenius/dify/issues/26107): Draft version uses wrong DSL after viewing history - [#29938](https://github.com/langgenius/dify/issues/29938): Changes in historic versions affected current live version **Recommendation:** Check if your Docker image is from a build after December 30, 2025. If you're on an older build, upgrading to the latest should resolve this issue. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/a3b72b78-2dc2-46eb-8eb9-c202129bf884?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/a3b72b78-2dc2-46eb-8eb9-c202129bf884?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/a3b72b78-2dc2-46eb-8eb9-c202129bf884?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/a3b72b78-2dc2-46eb-8eb9-c202129bf884?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a3b72b78-2dc2-46eb-8eb9-c202129bf884?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/a3b72b78-2dc2-46eb-8eb9-c202129bf884?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a3b72b78-2dc2-46eb-8eb9-c202129bf884?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20bug%20that%20was%20%2A%2Afixed%20in%20%5BPR%20%2330296%5D%28https%3A//github.com/langgenius/dify/pull/30296%29%2A%2A%2C%20merged%20on%20December%2030%2C%202025.%20Since%20you%27re%20on%20version%201.12.1%2C%20you%20should%20have%20this%20fix%20if%20you%27re%20on%20a%20build%20from%20after%20that%20date.%0A%0AThe%20root%20cause%20was%20in%20the%20version%20history%20panel%20component%E2%80%94it%20was%20calling%20%60handleRestoreFromPublishedWorkflow%28%29%60%20for%20all%20versions%2C%20including%20drafts%2C%20which%20overwrote%20the%20current%20draft.%20The%20fix%20added%20conditional%20logic%20to%20distinguish%20between%20draft%20and%20published%20versions.%0A%0ASeveral%20related%20issues%20were%20reported%3A%0A-%20%5B%2326107%5D%28https%3A//github.com/langgenius/dify/issues/26107%29%3A%20Draft%20version%20uses%20wrong%20DSL%20after%20viewing%20history%0A-%20%5B%2329938%5D%28https%3A//github.com/langgenius/dify/issues/29938%29%3A%20Changes%20in%20historic%20versions%20affected%20current%20live%20version%0A%0A%2A%2ARecommendation%3A%2A%2A%20Check%20if%20your%20Docker%20image%20is%20from%20a%20build%20after%20December%2030%2C%202025.%20If%20you%27re%20on%20an%20older%20build%2C%20upgrading%20to%20the%20latest%20should%20resolve%20this%20issue.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/32424)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22257