#22426·darktable

History stack copy-paste does not preserve module order

Author: ho4codeCreated Sep 28, 2026Updated Sep 28, 2026

Is there an existing issue for this?

  • I checked and did not find my issue in the already reported ones

Describe the bug

When copying the history stack that has a modified module order and then pasting it onto another image, the module order is not preserved

Steps to reproduce

  1. Open a photo in darkroom
  2. Create another instance of a module, e.g. exposure
  3. Make some adjustments in this new instance of the module
  4. Navigate to the "all enabled modules" tab
  5. Drag and drop the module to a new place, e.g. put the new exposure above color calibration
  6. Leave the darkroom
  7. Copy the history stack of this photo
  8. Paste it onto a new, unedited photo
  9. Enter the darkroom with the second photo
  10. Observe the module order not being preserved, e.g. there's now two exposure modules one after another, instead of one instance being placed above color calibration

Expected behavior

darktable should preserve module order when copy-pasting history stack

Logfile | Screenshot | Screencast

Original image:

Image

Second image, after pasting the history stack:

Image

Commit

No response

Where did you obtain darktable from?

GitHub nightly

darktable version

5.7.0+1033.g62ebe0a0f4

What OS are you using?

Mac

What is the version of your OS?

macOS 27

Describe your system

No response

Are you using OpenCL GPU in darktable?

I dont know

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response